Merge branch 'macos-menubar' of https://github.com/kawa-yoiko/aseprite into kawa-yoiko-macos-menubar

This commit is contained in:
David Capello 2019-03-23 09:48:12 -03:00
commit fd9ff17976
2 changed files with 7 additions and 1 deletions

2
laf

@ -1 +1 @@
Subproject commit eee4fa27f0f13f7ee03a98283cc41ce1d49c6aa3
Subproject commit c3a5bd4309e9fbe6d03f490468f9d5981e802ccc

View File

@ -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);