From 17a5a4ad9a9b1b295dc8905d87ddd6bc54c87f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 7 Apr 2024 00:25:15 +0800 Subject: [PATCH] Update settin.py --- LunaTranslator/LunaTranslator/gui/settin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LunaTranslator/LunaTranslator/gui/settin.py b/LunaTranslator/LunaTranslator/gui/settin.py index cc0fbb43..da4b3045 100644 --- a/LunaTranslator/LunaTranslator/gui/settin.py +++ b/LunaTranslator/LunaTranslator/gui/settin.py @@ -252,6 +252,8 @@ class Settin(closeashidewindow): dark = True elif dl == 2: dark = darkdetect.isDark() + if dark is None: + dark = False darklight = ["light", "dark"][dark] class WindowEventFilter(QObject):