From 28303f9d075f9f0d9c5abbe981249c18fbc3a007 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 26 Mar 2026 14:29:18 +0100 Subject: [PATCH] fix dark mode scheduling --- Helpers/Hyprsunset.qml | 6 ++++-- shell.qml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Helpers/Hyprsunset.qml b/Helpers/Hyprsunset.qml index 6efd135..6c6d963 100644 --- a/Helpers/Hyprsunset.qml +++ b/Helpers/Hyprsunset.qml @@ -74,9 +74,11 @@ Singleton { var now = new Date(); if (now.getHours() >= root.start || now.getHours() < root.end) { - root.startNightLight(root.temp); + if (!root.enabled) + root.startNightLight(root.temp); } else { - root.stopNightLight(); + if (root.enabled) + root.stopNightLight(); } } } diff --git a/shell.qml b/shell.qml index 40780eb..2da3a37 100644 --- a/shell.qml +++ b/shell.qml @@ -1,5 +1,5 @@ //@ pragma UseQApplication -//@ pragma Env QSG_RENDER_LOOP=threaded +//@ pragma Env QSG_RENDER_LOOP=basic //@ pragma Env QSG_RHI_BACKEND=vulkan //@ pragma Env QSG_USE_SIMPLE_ANIMATION_DRIVER=0 //@ pragma Env QS_NO_RELOAD_POPUP=1