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:37:00 +02:00 committed by GitHub
parent 7462d61e16
commit ecd9828afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,9 +408,11 @@ Module.register("weatherforecast", {
} }
//Log.log(this.forecast); //Log.log(this.forecast);
this.show(this.config.animationSpeed, { lockString: this.identifier }); if (!this.hidden) {
this.loaded = true; this.show(this.config.animationSpeed, { lockString: this.identifier });
this.updateDom(this.config.animationSpeed); this.loaded = true;
this.updateDom(this.config.animationSpeed);
}
}, },
/* scheduleUpdate() /* scheduleUpdate()