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
Notes: sideshowbarker 2024-07-19 04:31:21 +09:00

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);
}));
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)