Merge branch 'refactor/enable-timer-first' into 'master'

Enable timer first, other modules should rely on signal to execute their actions.

Fix #25 


<!-- Don't remove the following line -->

See merge request rmnvgr/nightthemeswitcher-gnome-shell-extension!36
This commit is contained in:
Romain
2020-07-28 09:00:50 +00:00
4 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -70,13 +70,13 @@ function enable() {
commander = new Commander();
settingsManager.enable();
timer.enable();
gtkThemer.enable();
shellThemer.enable();
iconThemer.enable();
cursorThemer.enable();
backgrounder.enable();
commander.enable();
timer.enable();
enabled = true;
log_debug('Extension enabled.');
-1
View File
@@ -37,7 +37,6 @@ var Backgrounder = class {
log_debug('Enabling Backgrounder...');
this._watch_status();
if ( e.settingsManager.backgrounds_enabled ) {
this._change_background(e.timer.time);
this._connect_settings();
this._connect_timer();
}
-1
View File
@@ -50,7 +50,6 @@ var GtkThemer = class {
this._save_original_theme();
if ( e.settingsManager.gtk_variants_enabled ) {
this._update_variants();
this._set_variant(e.timer.time);
this._connect_settings();
this._connect_timer();
}
-1
View File
@@ -49,7 +49,6 @@ var ShellThemer = class {
this._save_original_theme();
if ( e.settingsManager.shell_variants_enabled ) {
this._update_variants();
this._set_variant(e.timer.time);
this._connect_settings();
this._connect_timer();
}