mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
feat: Add create and open options to macOS dock icon context menu
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <imgui.h>
|
||||
#include <imgui_internal.h>
|
||||
#include <hex/api/shortcut_manager.hpp>
|
||||
#include <hex/api/content_registry/user_interface.hpp>
|
||||
|
||||
#if defined(OS_MACOS)
|
||||
extern "C" {
|
||||
@@ -98,6 +99,22 @@ namespace hex::menu {
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
bool beginTaskBarMenu() {
|
||||
#if defined(OS_MACOS)
|
||||
return beginMenu(ContentRegistry::UserInterface::impl::TaskBarMenuValue, true);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void endTaskBarMenu() {
|
||||
#if defined(OS_MACOS)
|
||||
endMenu();
|
||||
#else
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
bool menuItem(const char *label, const Shortcut &shortcut, bool selected, bool enabled) {
|
||||
#if defined(OS_MACOS)
|
||||
|
||||
Reference in New Issue
Block a user