mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00: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: ba6a290f4f
Pull-request: https://github.com/SerenityOS/serenity/pull/1281
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue