From 7ed56c0f4c23ced1bd70571e7072501ad00b69c4 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 20 Jan 2021 09:49:51 -0500 Subject: [PATCH] Make OpenRecentItem disabled if there are no recent patches. --- src/app/MenuBar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 586f29de..f9e794b8 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -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);