Browse Source

Disable "Revert" menu item when the patch is not saved.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
780c0c8b7d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/app/MenuBar.cpp

+ 1
- 0
src/app/MenuBar.cpp View File

@@ -185,6 +185,7 @@ struct FileButton : MenuButton {
RevertItem* revertItem = new RevertItem;
revertItem->text = "Revert";
revertItem->rightText = RACK_MOD_CTRL_NAME "+" RACK_MOD_SHIFT_NAME "+O";
revertItem->disabled = (APP->patch->path == "");
menu->addChild(revertItem);

QuitItem* quitItem = new QuitItem;


Loading…
Cancel
Save