impr: Move some options into a new Extras menu

This commit is contained in:
WerWolv
2023-05-12 08:38:32 +02:00
parent 18bc5de169
commit b0876e1c35
6 changed files with 22 additions and 14 deletions

View File

@@ -6,6 +6,8 @@
#include <hex/helpers/fs.hpp>
#include <hex/helpers/utils.hpp>
#include <content/popups/popup_docs_question.hpp>
#include <romfs/romfs.hpp>
namespace hex::plugin::builtin {
@@ -18,9 +20,15 @@ namespace hex::plugin::builtin {
this->getWindowOpenState() = true;
});
ContentRegistry::Interface::addMenuItem({ "hex.builtin.menu.help", "hex.builtin.view.help.documentation" }, 1050, Shortcut::None, [] {
ContentRegistry::Interface::addMenuItemSeparator({ "hex.builtin.menu.help" }, 2000);
ContentRegistry::Interface::addMenuItem({ "hex.builtin.menu.help", "hex.builtin.view.help.documentation" }, 3000, Shortcut::None, [] {
hex::openWebpage("https://imhex.werwolv.net/docs");
});
ContentRegistry::Interface::addMenuItem({ "hex.builtin.menu.help", "hex.builtin.menu.help.ask_for_help" }, 4000, CTRLCMD + SHIFT + Keys::D, [] {
PopupDocsQuestion::open();
});
}
static void link(const std::string &name, const std::string &author, const std::string &url) {