Skip to content

Commit 10996dd

Browse files
committed
[SharedCache] Respect workflow override on shared cache databases
Fixes: #6571
1 parent 54df8ea commit 10996dd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

view/sharedcache/core/SharedCacheView.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)