UI: adjust preferences save/revert button layout
[blender.git] / release / scripts / startup / bl_ui / space_userpref.py
index bec6429..ca2d616 100644 (file)
@@ -34,16 +34,13 @@ class USERPREF_HT_header(Header):
     def draw_buttons(layout, context, *, is_vertical=False):
         prefs = context.preferences
 
-        if is_vertical:
-            sub = layout.column(align=True)
-        else:
-            sub = layout.row(align=True)
+        row = layout.row()
 
-        sub.operator("wm.save_userpref")
-        sub_revert = sub.row(align=True)
-        sub_revert.active = prefs.is_dirty
-        sub_revert.operator("wm.read_userpref", text="Revert Preferences")
-        sub.operator("wm.read_factory_userpref", text="Load Factory Preferences")
+        row.operator("wm.save_userpref", text="Save")
+        row_revert = row.row(align=True)
+        row_revert.active = prefs.is_dirty
+        row_revert.operator("wm.read_userpref", text="Revert")
+        layout.operator("wm.read_factory_userpref", text="Load Factory Settings")
 
         layout.prop(prefs, "use_preferences_save")