UI: always show text on the splash when running in offline mode

see #119521
This commit is contained in:
Campbell Barton
2024-05-31 18:47:15 +10:00
parent dce293b62f
commit 43a47f39f9
2 changed files with 6 additions and 1 deletions

View File

@@ -470,7 +470,8 @@ def splash_draw_status_fn(self, context):
if not bpy.app.online_access:
if bpy.app.online_access_override:
# Since there is nothing to do in this case, we show no operator.
self.layout.label(text="Running in Offline Mode", icon='INTERNET')
# The splash screen shows text here.
pass
else:
text, icon, update_count = notify.ui_text()
row = self.layout.row(align=True)

View File

@@ -3350,6 +3350,10 @@ class WM_MT_splash(Menu):
col2.operator("wm.url_open_preset", text="What's New", icon='URL').type = 'RELEASE_NOTES'
layout.separator()
if (not bpy.app.online_access) and bpy.app.online_access_override:
self.layout.label(text="Running in Offline Mode", icon='INTERNET')
layout.separator()