From 50baacbd52dbb8e2b1cd4683c5e939653d6e0bbd Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Tue, 18 Aug 2026 17:38:05 +0800 Subject: [PATCH] Update Furious/Qt/DynamicTheme.py Signed-off-by: Loren Eteval --- Furious/Qt/DynamicTheme.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Furious/Qt/DynamicTheme.py b/Furious/Qt/DynamicTheme.py index 75108ae..18a36d2 100644 --- a/Furious/Qt/DynamicTheme.py +++ b/Furious/Qt/DynamicTheme.py @@ -64,7 +64,9 @@ class AppHue: @staticmethod def currentColor() -> str: """Return the current color value.""" - if AppConnectionController().isConnected(): + controller = AppConnectionController() + + if controller is not None and controller.isConnected(): return AppHue.connectedColor() else: return AppHue.disconnectedColor() @@ -72,7 +74,9 @@ class AppHue: @staticmethod def currentWindowIcon() -> AppQIcon: """Return the current window icon value.""" - if AppConnectionController().isConnected(): + controller = AppConnectionController() + + if controller is not None and controller.isConnected(): return AppHue.connectedWindowIcon() else: return AppHue.disconnectedWindowIcon()