mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
Taskbar: Use default buttons in ShutdownDialog
This commit is contained in:
parent
72be27e16c
commit
c317275425
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/krkk
Commit: c317275425
Pull-request: https://github.com/SerenityOS/serenity/pull/14172
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ ShutdownDialog::ShutdownDialog()
|
|||
ok_button.on_click = [this](auto) {
|
||||
done(ExecResult::OK);
|
||||
};
|
||||
ok_button.set_default(true);
|
||||
auto& cancel_button = button_container.add<GUI::Button>("Cancel");
|
||||
cancel_button.set_fixed_size(80, 23);
|
||||
cancel_button.on_click = [this](auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue