mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
SystemMenu: Add icon to 'Exit' menu item
This commit is contained in:
parent
70fe126d01
commit
e8ed7f829e
Notes:
sideshowbarker
2024-07-19 04:31:21 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/e8ed7f829ed Pull-request: https://github.com/SerenityOS/serenity/pull/2898
@ -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…
Reference in New Issue
Block a user