1
0
mirror of synced 2025-02-18 03:09:18 +01:00

ui: Move around File menu items to make more logical sense

This commit is contained in:
WerWolv 2023-01-19 17:05:54 +01:00
parent 05c8158716
commit 58a70f6ad8

View File

@ -56,8 +56,8 @@ namespace hex::plugin::builtin {
} }
}); });
/* File open, quit imhex */ /* File close, quit imhex */
ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 1150, [&] { ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 5000, [&] {
bool providerValid = ImHexApi::Provider::isValid(); bool providerValid = ImHexApi::Provider::isValid();
bool taskRunning = TaskManager::getRunningTaskCount() > 0; bool taskRunning = TaskManager::getRunningTaskCount() > 0;
@ -65,13 +65,13 @@ namespace hex::plugin::builtin {
ImHexApi::Provider::remove(ImHexApi::Provider::get()); 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(); ImHexApi::Common::closeImHex();
} }
}); });
/* Project open / save */ /* Project open / save */
ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 1250, [&] { ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 1150, [&] {
auto provider = ImHexApi::Provider::get(); auto provider = ImHexApi::Provider::get();
bool providerValid = ImHexApi::Provider::isValid(); bool providerValid = ImHexApi::Provider::isValid();
bool taskRunning = TaskManager::getRunningTaskCount() > 0; bool taskRunning = TaskManager::getRunningTaskCount() > 0;