mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Terminal: Added GCommonActions
This commit is contained in:
parent
1f666abcd2
commit
9f8a2af921
Notes:
sideshowbarker
2024-07-19 12:17:16 +09:00
Author: https://github.com/RyanGrieb
Commit: 9f8a2af921
Pull-request: https://github.com/SerenityOS/serenity/pull/519
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ int main(int argc, char** argv)
|
||||||
settings_window->move_to_front();
|
settings_window->move_to_front();
|
||||||
}));
|
}));
|
||||||
app_menu->add_separator();
|
app_menu->add_separator();
|
||||||
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) {
|
app_menu->add_action(GCommonActions::make_quit_action([] {
|
||||||
dbgprintf("Terminal: Quit menu activated!\n");
|
dbgprintf("Terminal: Quit menu activated!\n");
|
||||||
GApplication::the().quit(0);
|
GApplication::the().quit(0);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue