1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-15 08:42:47 -04:00

refactor(SysUpdate): Explicit Run on Startup option in settings

- Relocated DMS System Updater to System Setting section
- Removed forced auto refresh upon update & widget loading
This commit is contained in:
purian23
2026-05-14 20:32:42 -04:00
parent e5cd9caba1
commit 0a892a4a9e
7 changed files with 55 additions and 26 deletions
+1 -7
View File
@@ -79,8 +79,6 @@ func NewManager() (*Manager, error) {
m.schedulerWG.Add(1)
go m.scheduler()
go m.runRefresh(context.Background())
return m, nil
}
@@ -183,14 +181,11 @@ func (m *Manager) Cancel() {
}
func (m *Manager) Acquire() {
first := atomic.AddInt32(&m.acquireCount, 1) == 1
atomic.AddInt32(&m.acquireCount, 1)
select {
case m.wakeSched <- struct{}{}:
default:
}
if first {
go m.runRefresh(context.Background())
}
}
func (m *Manager) Release() {
@@ -415,7 +410,6 @@ func (m *Manager) finishSuccessfulUpgrade(clearPackages bool) {
}
m.mu.Unlock()
m.markDirty()
go m.runRefresh(context.Background())
}
func upgradeBackends(sel Selection, opts UpgradeOptions) []Backend {