summaryrefslogtreecommitdiff
path: root/Userland/Applications/KeyboardSettings/main.cpp
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2021-07-20 23:58:35 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-21 12:34:27 +0200
commit3be472176d3027aae43ff84d0f5a262af9475071 (patch)
treea1514d81b4b3d3968b041811711895e2616da411 /Userland/Applications/KeyboardSettings/main.cpp
parent6629af8bed0503532e0852b3a13f2a538d094e20 (diff)
downloadserenity-3be472176d3027aae43ff84d0f5a262af9475071.zip
KeyboardSettings: Use typical OK-Cancel-Apply arrangement
This brings KeyboardSettings in line with the other settings applications.
Diffstat (limited to 'Userland/Applications/KeyboardSettings/main.cpp')
-rw-r--r--Userland/Applications/KeyboardSettings/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Applications/KeyboardSettings/main.cpp b/Userland/Applications/KeyboardSettings/main.cpp
index d587d42889..82b0609a74 100644
--- a/Userland/Applications/KeyboardSettings/main.cpp
+++ b/Userland/Applications/KeyboardSettings/main.cpp
@@ -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();