mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
SystemMenu: Remove --shutdown argument when calling SystemDialog
This commit is contained in:
parent
efc4861786
commit
ba6a290f4f
Notes:
sideshowbarker
2024-07-19 17:39:10 +09:00
Author: https://github.com/thatlittlegit Commit: https://github.com/SerenityOS/serenity/commit/ba6a290f4f8 Pull-request: https://github.com/SerenityOS/serenity/pull/1281
@ -192,9 +192,9 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
|
||||
}
|
||||
}));
|
||||
system_menu->add_separator();
|
||||
system_menu->add_action(GUI::Action::create("Shutdown...", [](auto&) {
|
||||
system_menu->add_action(GUI::Action::create("Exit...", [](auto&) {
|
||||
if (fork() == 0) {
|
||||
execl("/bin/SystemDialog", "/bin/SystemDialog", "--shutdown", nullptr);
|
||||
execl("/bin/SystemDialog", "/bin/SystemDialog", nullptr);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user