mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 18:35:09 +00:00
SystemMenu: Add icon to 'Exit' menu item
This commit is contained in:
parent
70fe126d01
commit
e8ed7f829e
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
|
|||
posix_spawn(&child_pid, "/bin/About", nullptr, nullptr, const_cast<char**>(argv), environ);
|
||||
}));
|
||||
system_menu->add_separator();
|
||||
system_menu->add_action(GUI::Action::create("Exit...", [](auto&) {
|
||||
system_menu->add_action(GUI::Action::create("Exit...", Gfx::Bitmap::load_from_file("/res/icons/16x16/power.png"), [](auto&) {
|
||||
auto command = ShutdownDialog::show();
|
||||
|
||||
if (command.size() == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue