mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 22:23:49 +08:00
微调QSS支持被关闭的按键
This commit is contained in:
@@ -55,7 +55,12 @@ namespace SpkUi
|
||||
ObtainStylesheet.close();
|
||||
|
||||
CurrentStyle = SpkUiStyle::Invalid;
|
||||
|
||||
#ifdef NDEBUG
|
||||
SetGlobalStyle(Light, false);
|
||||
#else
|
||||
SetGlobalStyle(qgetenv("SPK_FORCE_DARK").toInt() ? Dark : Light, false);
|
||||
#endif
|
||||
|
||||
// Initalize crash handler
|
||||
signal(SIGSEGV, SpkUi::CrashSignalHandler);
|
||||
|
||||
Reference in New Issue
Block a user