mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
Piano: Added GCommonActions
This commit is contained in:
parent
a538968cc2
commit
962b65b42f
Notes:
sideshowbarker
2024-07-19 12:17:36 +09:00
Author: https://github.com/RyanGrieb Commit: https://github.com/SerenityOS/serenity/commit/962b65b42f1 Pull-request: https://github.com/SerenityOS/serenity/pull/519
@ -46,7 +46,7 @@ int main(int argc, char** argv)
|
||||
auto menubar = make<GMenuBar>();
|
||||
|
||||
auto app_menu = make<GMenu>("Piano");
|
||||
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) {
|
||||
app_menu->add_action(GCommonActions::make_quit_action([] {
|
||||
GApplication::the().quit(0);
|
||||
return;
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user