From 58a70f6ad8c422589ebe72d97a9a8489bf12b2ec Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 19 Jan 2023 17:05:54 +0100 Subject: [PATCH] ui: Move around File menu items to make more logical sense --- plugins/builtin/source/content/main_menu_items.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/builtin/source/content/main_menu_items.cpp b/plugins/builtin/source/content/main_menu_items.cpp index 49a5c2a18..6354538d5 100644 --- a/plugins/builtin/source/content/main_menu_items.cpp +++ b/plugins/builtin/source/content/main_menu_items.cpp @@ -56,8 +56,8 @@ namespace hex::plugin::builtin { } }); - /* File open, quit imhex */ - ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 1150, [&] { + /* File close, quit imhex */ + ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 5000, [&] { bool providerValid = ImHexApi::Provider::isValid(); bool taskRunning = TaskManager::getRunningTaskCount() > 0; @@ -65,13 +65,13 @@ namespace hex::plugin::builtin { ImHexApi::Provider::remove(ImHexApi::Provider::get()); } - if (ImGui::MenuItem("hex.builtin.menu.file.quit"_lang)) { + if (ImGui::MenuItem("hex.builtin.menu.file.quit"_lang, "Alt + F4")) { ImHexApi::Common::closeImHex(); } }); /* Project open / save */ - ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 1250, [&] { + ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 1150, [&] { auto provider = ImHexApi::Provider::get(); bool providerValid = ImHexApi::Provider::isValid(); bool taskRunning = TaskManager::getRunningTaskCount() > 0;