We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c18bf commit 86a1683Copy full SHA for 86a1683
Source/PluginEditor.cpp
@@ -609,6 +609,7 @@ void PlugDataPluginEditor::updateCommandStatus()
609
canRedo = libpd_can_redo(getCurrentCanvas()->patch.getPointer()) && pd.locked == var(false);
610
}
611
612
+ toolbarButton(Add)->setEnabled(pd.locked == var(true));
613
toolbarButton(Redo)->setEnabled(canRedo);
614
toolbarButton(Undo)->setEnabled(canUndo);
615
@@ -631,8 +632,6 @@ void PlugDataPluginEditor::getAllCommands(Array<CommandID>& commands)
631
632
633
void PlugDataPluginEditor::getCommandInfo(const CommandID commandID, ApplicationCommandInfo& result)
634
{
- toolbarButton(Add)->setEnabled(pd.locked == var(false));
635
-
636
bool hasBoxSelection = false;
637
bool hasSelection = false;
638
0 commit comments