From 43a47f39f9fec2e50f883c91ddcb2e0c0c3fd3f0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 31 May 2024 18:47:15 +1000 Subject: [PATCH] UI: always show text on the splash when running in offline mode see #119521 --- scripts/addons_core/bl_pkg/bl_extension_notify.py | 3 ++- scripts/startup/bl_operators/wm.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/addons_core/bl_pkg/bl_extension_notify.py b/scripts/addons_core/bl_pkg/bl_extension_notify.py index a50e9db3620..ddee7c07fb3 100644 --- a/scripts/addons_core/bl_pkg/bl_extension_notify.py +++ b/scripts/addons_core/bl_pkg/bl_extension_notify.py @@ -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) diff --git a/scripts/startup/bl_operators/wm.py b/scripts/startup/bl_operators/wm.py index 92bfb5bbfd2..7a6ccf13c8e 100644 --- a/scripts/startup/bl_operators/wm.py +++ b/scripts/startup/bl_operators/wm.py @@ -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()