mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 19:21:12 +00:00
Merge branch 'macos-menubar' of https://github.com/kawa-yoiko/aseprite into kawa-yoiko-macos-menubar
This commit is contained in:
commit
fd9ff17976
2
laf
2
laf
@ -1 +1 @@
|
||||
Subproject commit eee4fa27f0f13f7ee03a98283cc41ce1d49c6aa3
|
||||
Subproject commit c3a5bd4309e9fbe6d03f490468f9d5981e802ccc
|
@ -728,6 +728,9 @@ void AppMenus::createNativeMenus()
|
||||
UIContext::instance()->executeCommand(cmd);
|
||||
}
|
||||
};
|
||||
about.validate = [native](os::MenuItem* item){
|
||||
item->setEnabled(can_call_global_shortcut(&native));
|
||||
};
|
||||
|
||||
os::MenuItemInfo preferences("Preferences...");
|
||||
native = get_native_shortcut_for_command(CommandId::Options());
|
||||
@ -738,6 +741,9 @@ void AppMenus::createNativeMenus()
|
||||
UIContext::instance()->executeCommand(cmd);
|
||||
}
|
||||
};
|
||||
preferences.validate = [native](os::MenuItem* item){
|
||||
item->setEnabled(can_call_global_shortcut(&native));
|
||||
};
|
||||
|
||||
os::MenuItemInfo hide("Hide " PACKAGE, os::MenuItemInfo::Hide);
|
||||
hide.shortcut = os::Shortcut('h', os::kKeyCmdModifier);
|
||||
|
Loading…
x
Reference in New Issue
Block a user