mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03: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: https://github.com/SerenityOS/serenity/commit/f4686344940 Pull-request: https://github.com/SerenityOS/serenity/pull/519
@ -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…
Reference in New Issue
Block a user