mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:55:08 +00:00
TextEditorWidget: Added GCommonActions
This commit is contained in:
parent
c4d59f64d1
commit
f468634494
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