gamma: fix initial night mode enablement

This commit is contained in:
bbedward committed 2025-12-11 12:27:58 -05:00
1 parent 7c6f0432c8
commit 38db6a41d5
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