Activate timer before modules and activate always on-demand timer first

This commit is contained in:
Romain Vigier
2020-12-03 11:47:34 +01:00
parent f4756eb470
commit 69b997c659
8 changed files with 12 additions and 9 deletions
+2 -3
View File
@@ -57,6 +57,7 @@ var ShellThemer = class {
this._connectSettings();
this._updateVariants();
this._connectTimer();
this._setSystemVariant(e.timer.time);
}
} catch (error) {
notifyError(error);
@@ -142,11 +143,9 @@ var ShellThemer = class {
}
}
_onManualChanged(_settings, enabled) {
_onManualChanged(_settings, _enabled) {
this.disable();
this.enable();
if (enabled)
this._setSystemVariant(e.timer.time);
}
_onTimeChanged(_timer, newTime) {