diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 26ad22d3ac2..b3a456ee2fe 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -605,6 +605,25 @@ class USERPREF_PT_system_cycles_devices(SystemPanel, CenterAlignMixIn, Panel): # col.row().prop(system, "opensubdiv_compute_type", text="") +class USERPREF_PT_system_os_settings(SystemPanel, CenterAlignMixIn, Panel): + bl_label = "Operating System Settings" + + @classmethod + def poll(cls, _context): + # Only for Windows so far + import sys + return sys.platform[:3] == "win" + + def draw_centered(self, context, layout): + prefs = context.preferences + + layout.label(text="Make this installation your default Blender") + split = layout.split(factor=0.4) + split.alignment = 'RIGHT' + split.label(text="") + split.operator("file.associate_blend", text="Make Default") + + class USERPREF_PT_system_memory(SystemPanel, CenterAlignMixIn, Panel): bl_label = "Memory & Limits" @@ -2324,6 +2343,7 @@ classes = ( USERPREF_PT_animation_fcurves, USERPREF_PT_system_cycles_devices, + USERPREF_PT_system_os_settings, USERPREF_PT_system_memory, USERPREF_PT_system_video_sequencer, USERPREF_PT_system_sound, |