mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
TextEditorWidget: Added GCommonActions
This commit is contained in:
parent
c4d59f64d1
commit
f468634494
Notes:
sideshowbarker
2024-07-19 12:18:03 +09:00
Author: https://github.com/RyanGrieb
Commit: f468634494
Pull-request: https://github.com/SerenityOS/serenity/pull/519
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ TextEditorWidget::TextEditorWidget()
|
|||
app_menu->add_action(*m_save_action);
|
||||
app_menu->add_action(*m_save_as_action);
|
||||
app_menu->add_separator();
|
||||
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [this](const GAction&) {
|
||||
app_menu->add_action(GCommonActions::make_quit_action([this] {
|
||||
if (!request_close())
|
||||
return;
|
||||
GApplication::the().quit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue