mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-18 17:24:01 -04:00
fix(system-update): apply saved updaterIntervalSeconds on daemon connect (#3093)
The dms daemon always initializes IntervalSeconds to its 30-minute default and has no persistence of its own; the saved SettingsData value was only ever pushed on manual interaction with the Settings UI dropdown. Result: every daemon (re)start silently reverts to checking every 30 minutes regardless of the user's configured interval.
This commit is contained in:
@@ -98,6 +98,10 @@ Singleton {
|
||||
if (has && !sysupdateAvailable) {
|
||||
sysupdateAvailable = true;
|
||||
requestState();
|
||||
// The daemon always starts at defaultIntervalSeconds (30 min) and
|
||||
// has no persistence of its own, so re-apply the saved interval
|
||||
// on every fresh connection (daemon (re)start).
|
||||
setInterval(SettingsData.updaterIntervalSeconds);
|
||||
} else if (!has) {
|
||||
sysupdateAvailable = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user