UI: order "Network" after "OS Settings" in the System preferences

With the default window size this panel wasn't visible making it more
difficult to discover. Reorder since this is essential for enabling
extensions.
This commit is contained in:
Campbell Barton
2024-05-24 21:51:45 +10:00
parent b8a8a97440
commit ae73c8aa25

View File

@@ -708,6 +708,28 @@ class USERPREF_PT_system_os_settings(SystemPanel, CenterAlignMixIn, Panel):
layout.prop(bpy.context.preferences.system, "register_all_users", text="For All Users")
class USERPREF_PT_system_network(SystemPanel, CenterAlignMixIn, Panel):
bl_label = "Network"
def draw_centered(self, context, layout):
prefs = context.preferences
system = prefs.system
row = layout.row()
row.prop(system, "use_online_access", text="Allow Online Access")
# Show when the preference has been overridden and doesn't match the current preference.
runtime_online_access = bpy.app.online_access
if system.use_online_access != runtime_online_access:
row = layout.split(factor=0.4)
row.label(text="")
row.label(
text="{:s} on startup, overriding the preference.".format(
"Enabled" if runtime_online_access else "Disabled"
),
)
class USERPREF_PT_system_memory(SystemPanel, CenterAlignMixIn, Panel):
bl_label = "Memory & Limits"
@@ -739,28 +761,6 @@ class USERPREF_PT_system_memory(SystemPanel, CenterAlignMixIn, Panel):
col.prop(system, "vbo_collection_rate", text="Garbage Collection Rate")
class USERPREF_PT_system_network(SystemPanel, CenterAlignMixIn, Panel):
bl_label = "Network"
def draw_centered(self, context, layout):
prefs = context.preferences
system = prefs.system
row = layout.row()
row.prop(system, "use_online_access", text="Allow Online Access")
# Show when the preference has been overridden and doesn't match the current preference.
runtime_online_access = bpy.app.online_access
if system.use_online_access != runtime_online_access:
row = layout.split(factor=0.4)
row.label(text="")
row.label(
text="{:s} on startup, overriding the preference.".format(
"Enabled" if runtime_online_access else "Disabled"
),
)
class USERPREF_PT_system_video_sequencer(SystemPanel, CenterAlignMixIn, Panel):
bl_label = "Video Sequencer"
@@ -2849,9 +2849,9 @@ classes = (
USERPREF_PT_system_cycles_devices,
USERPREF_PT_system_os_settings,
USERPREF_PT_system_network,
USERPREF_PT_system_memory,
USERPREF_PT_system_video_sequencer,
USERPREF_PT_system_network,
USERPREF_PT_system_sound,
USERPREF_MT_interface_theme_presets,