gamma: fix initial night mode enablement

This commit is contained in:
bbedward committed 2025-12-12 10:15:38 -05:00
1 parent 8ede810d32
commit 119b5df6df
1 file changed
+10
+10
View File
@@ -643,6 +643,16 @@ func (m *Manager) applyCurrentTemp() {
return
}
m.configMutex.RLock()
low, high := m.config.LowTemp, m.config.HighTemp
m.configMutex.RUnlock()
if low == high {
m.applyGamma(low)
m.updateStateFromSchedule()
return
}
if !m.hasValidSchedule() {
m.updateStateFromSchedule()
return