Start the transition before changing the color scheme

This commit is contained in:
Romain Vigier
2022-02-20 17:50:19 +01:00
parent 7056806cb4
commit d97ca0ce1a
+1 -1
View File
@@ -79,9 +79,9 @@ var Timer = class {
return;
console.debug(`Time has changed to ${time}.`);
this.#time = time;
this.#interfaceSettings.set_string('color-scheme', time === Time.NIGHT ? 'prefer-dark' : 'default');
if (this.#settings.get_boolean('transition'))
main.layoutManager.screenTransition.run();
this.#interfaceSettings.set_string('color-scheme', time === Time.NIGHT ? 'prefer-dark' : 'default');
this.emit('time-changed', time);
}