fix dark mode scheduling
This commit is contained in:
@@ -74,8 +74,10 @@ Singleton {
|
|||||||
|
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
if (now.getHours() >= root.start || now.getHours() < root.end) {
|
if (now.getHours() >= root.start || now.getHours() < root.end) {
|
||||||
|
if (!root.enabled)
|
||||||
root.startNightLight(root.temp);
|
root.startNightLight(root.temp);
|
||||||
} else {
|
} else {
|
||||||
|
if (root.enabled)
|
||||||
root.stopNightLight();
|
root.stopNightLight();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//@ pragma UseQApplication
|
//@ pragma UseQApplication
|
||||||
//@ pragma Env QSG_RENDER_LOOP=threaded
|
//@ pragma Env QSG_RENDER_LOOP=basic
|
||||||
//@ pragma Env QSG_RHI_BACKEND=vulkan
|
//@ pragma Env QSG_RHI_BACKEND=vulkan
|
||||||
//@ pragma Env QSG_USE_SIMPLE_ANIMATION_DRIVER=0
|
//@ pragma Env QSG_USE_SIMPLE_ANIMATION_DRIVER=0
|
||||||
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
||||||
|
|||||||
Reference in New Issue
Block a user