mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:47:34 +00:00
SystemMonitor: Added GCommonActions
This commit is contained in:
parent
2d8318a474
commit
1f666abcd2
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
auto menubar = make<GMenuBar>();
|
auto menubar = make<GMenuBar>();
|
||||||
auto app_menu = make<GMenu>("System Monitor");
|
auto app_menu = make<GMenu>("System Monitor");
|
||||||
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);
|
GApplication::the().quit(0);
|
||||||
return;
|
return;
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue