1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

gamma: fix initial night mode enablement

This commit is contained in:
bbedward
2025-12-11 12:27:58 -05:00
parent 8ede810d32
commit 119b5df6df

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