Browse Source

KeyboardSettings: Use typical OK-Cancel-Apply arrangement

This brings KeyboardSettings in line with the other settings
applications.
Jamie Mansfield 4 năm trước cách đây
mục cha
commit
3be472176d
1 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 7 7
      Userland/Applications/KeyboardSettings/main.cpp

+ 7 - 7
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();