mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
QuickShow: Added GCommonActions
This commit is contained in:
parent
962b65b42f
commit
2d8318a474
Notes:
sideshowbarker
2024-07-19 12:17:29 +09:00
Author: https://github.com/RyanGrieb
Commit: 2d8318a474
Pull-request: https://github.com/SerenityOS/serenity/pull/519
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ int main(int argc, char** argv)
|
|||
auto menubar = make<GMenuBar>();
|
||||
|
||||
auto app_menu = make<GMenu>("QuickShow");
|
||||
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…
Add table
Add a link
Reference in a new issue