File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ Ref<Settings> SharedCacheViewType::GetLoadSettingsForData(BinaryView* data)
5151 settings->UpdateProperty (override , " readOnly" , false );
5252 }
5353
54- Ref<Settings> programSettings = Settings::Instance ();
55- programSettings->Set (" analysis.workflows.functionWorkflow" , " core.function.sharedCache" , viewRef);
56-
5754 settings->RegisterSetting (" loader.dsc.processCFStrings" ,
5855 R"( {
5956 "title" : "Process CFString Metadata",
@@ -221,7 +218,9 @@ bool SharedCacheView::Init()
221218
222219 Ref<Settings> settings = GetLoadSettings (GetTypeName ());
223220
224- if (!settings)
221+ // If we are a new file (not a database) lets go ahead and set the function workflow.
222+ // We do not set the workflow on database as the user might have changed it in load options prior.
223+ if (!settings && !GetFile ()->IsBackedByDatabase ())
225224 {
226225 Ref<Settings> programSettings = Settings::Instance ();
227226 programSettings->Set (" analysis.workflows.functionWorkflow" , " core.function.sharedCache" , this );
You can’t perform that action at this time.
0 commit comments