Skip to content

Commit b9bc692

Browse files
committed
Disable loading default config when acquisition is active or signal chain is locked
1 parent af7262b commit b9bc692

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/UI/UIComponent.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ void UIComponent::getCommandInfo (CommandID commandID, ApplicationCommandInfo& r
820820
case openDefaultConfigWindow:
821821
result.setInfo ("Load a default config", "Load a default configuration", "General", 0);
822822
result.addDefaultKeypress ('D', ModifierKeys::commandModifier);
823+
result.setActive (! acquisitionStarted && ! getEditorViewport()->isSignalChainLocked());
823824
break;
824825

825826
case showHelp:
@@ -1152,7 +1153,7 @@ bool UIComponent::perform (const InvocationInfo& info)
11521153
{
11531154
delete pluginInstaller;
11541155
}
1155-
1156+
11561157
pluginInstaller = new PluginInstaller();
11571158
pluginInstaller->setVisible (true);
11581159
pluginInstaller->toFront (true);

0 commit comments

Comments
 (0)