1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

Taskbar: Use default buttons in ShutdownDialog

This commit is contained in:
Karol Kosek 2022-06-02 19:22:41 +02:00 committed by Andreas Kling
parent 72be27e16c
commit c317275425

View file

@ -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) {