1
Fork 0
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:
Ben Wiederhake 2020-07-27 01:24:13 +02:00 committed by Andreas Kling
parent 70fe126d01
commit e8ed7f829e

View file

@ -202,7 +202,7 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
posix_spawn(&child_pid, "/bin/About", nullptr, nullptr, const_cast<char**>(argv), environ); posix_spawn(&child_pid, "/bin/About", nullptr, nullptr, const_cast<char**>(argv), environ);
})); }));
system_menu->add_separator(); 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(); auto command = ShutdownDialog::show();
if (command.size() == 0) if (command.size() == 0)