Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
71f94434 by wurstsalat at 2023-05-28T16:16:55+02:00
fix: Windows themes: Don't fail hard when winsdk UISettings are not 
available

Fixes #11542

- - - - -


1 changed file:

- gajim/common/winapi/system_style.py


Changes:

=====================================
gajim/common/winapi/system_style.py
=====================================
@@ -35,7 +35,12 @@ def __init__(self, callback: Callable[..., None]) -> None:
         self._prefer_dark: bool | None = None
         self._callback = callback
 
-        self._ui_settings = UISettings()
+        try:
+            self._ui_settings = UISettings()
+        except OSError as err:
+            log.warning('winsdk UISettings not available:%s', err)
+            return
+
         self._ui_settings.add_color_values_changed(
             self._signal_color_values_changed)
         foreground_color = self._ui_settings.get_color_value(



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/71f94434be7ce180a8b8150f283dfe16b9c80143

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/71f94434be7ce180a8b8150f283dfe16b9c80143
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to