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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user