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:
+1
-1
@@ -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.');
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user