1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 02:38:13 +00:00

KeyboardSettings: Use typical OK-Cancel-Apply arrangement

This brings KeyboardSettings in line with the other settings
applications.
This commit is contained in:
Jamie Mansfield 2021-07-20 23:58:35 +01:00 committed by Andreas Kling
parent 6629af8bed
commit 3be472176d

View file

@ -155,13 +155,6 @@ int main(int argc, char** argv)
bottom_widget.layout()->add_spacer();
bottom_widget.set_fixed_height(22);
auto& apply_button = bottom_widget.add<GUI::Button>();
apply_button.set_text("Apply");
apply_button.set_fixed_width(60);
apply_button.on_click = [&](auto) {
apply_settings(false);
};
auto& ok_button = bottom_widget.add<GUI::Button>();
ok_button.set_text("OK");
ok_button.set_fixed_width(60);
@ -176,6 +169,13 @@ int main(int argc, char** argv)
app->quit();
};
auto& apply_button = bottom_widget.add<GUI::Button>();
apply_button.set_text("Apply");
apply_button.set_fixed_width(60);
apply_button.on_click = [&](auto) {
apply_settings(false);
};
auto quit_action = GUI::CommonActions::make_quit_action(
[&](auto&) {
app->quit();