Makes the module stay hidden without a lock.

When this module is hidden from another module, it un-hides itself when it updates itself. With this change it stays hidden, as it should. :)
This commit is contained in:
Erik Pettersson 2020-10-11 21:35:42 +02:00 committed by GitHub
parent ec80b25087
commit 7462d61e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -495,11 +495,12 @@ Module.register("currentweather", {
this.sunriseSunsetTime = timeString; this.sunriseSunsetTime = timeString;
this.sunriseSunsetIcon = sunrise < now && sunset > now ? "wi-sunset" : "wi-sunrise"; this.sunriseSunsetIcon = sunrise < now && sunset > now ? "wi-sunset" : "wi-sunrise";
if (!this.hidden) {
this.show(this.config.animationSpeed, { lockString: this.identifier }); this.show(this.config.animationSpeed, { lockString: this.identifier });
this.loaded = true; this.loaded = true;
this.updateDom(this.config.animationSpeed); this.updateDom(this.config.animationSpeed);
this.sendNotification("CURRENTWEATHER_DATA", { data: data }); this.sendNotification("CURRENTWEATHER_DATA", { data: data });
}
}, },
/* scheduleUpdate() /* scheduleUpdate()