Workaround error after suspend

This commit is contained in:
Romain Vigier
2020-05-15 09:34:53 +02:00
parent f2a04705ce
commit b36fb7d20e
+8
View File
@@ -86,6 +86,10 @@ var Switcher = class {
}
_on_theme_changed() {
if ( !this.theme || !this.time ) {
return;
}
try {
this.theme.update_variants();
this.theme.set_variant(this.time.current);
@@ -96,6 +100,10 @@ var Switcher = class {
}
_on_time_changed() {
if ( !this.theme || !this.time ) {
return;
}
try {
this.theme.set_variant(this.time.current);
}