Browse Source

Make OpenRecentItem disabled if there are no recent patches.

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

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

@@ -166,6 +166,7 @@ struct FileButton : MenuButton {
OpenRecentItem* openRecentItem = new OpenRecentItem;
openRecentItem->text = "Open recent";
openRecentItem->rightText = RIGHT_ARROW;
openRecentItem->disabled = settings::recentPatchPaths.empty();
menu->addChild(openRecentItem);

SaveItem* saveItem = new SaveItem;
@@ -438,7 +439,7 @@ struct ViewButton : MenuButton {
menu->addChild(tooltipsItem);

AllowCursorLockItem* allowCursorLockItem = new AllowCursorLockItem;
allowCursorLockItem->text = "Hide cursor when dragging parameters";
allowCursorLockItem->text = "Lock cursor when dragging parameters";
allowCursorLockItem->rightText = CHECKMARK(settings::allowCursorLock);
menu->addChild(allowCursorLockItem);



Loading…
Cancel
Save