1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

gamma: fix night mode toggling

This commit is contained in:
bbedward
2025-12-09 00:35:52 -05:00
parent 8a83f03cc1
commit 7ad23ad4a2

View File

@@ -1210,6 +1210,12 @@ func (m *Manager) SetEnabled(enabled bool) {
m.configMutex.Unlock()
if enabled {
targetTemp := m.calculateTemperature(time.Now())
m.transitionMutex.Lock()
m.currentTemp = targetTemp
m.targetTemp = targetTemp
m.transitionMutex.Unlock()
if !m.controlsInitialized {
m.post(func() {
log.Info("Creating gamma controls")