From ecd9828afc11bc09c64164724e2746f57e371fea Mon Sep 17 00:00:00 2001 From: Erik Pettersson Date: Sun, 11 Oct 2020 21:37:00 +0200 Subject: [PATCH] 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. :) --- modules/default/weatherforecast/weatherforecast.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index 4ecc18aa..f8550022 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -408,9 +408,11 @@ Module.register("weatherforecast", { } //Log.log(this.forecast); - this.show(this.config.animationSpeed, { lockString: this.identifier }); - this.loaded = true; - this.updateDom(this.config.animationSpeed); + if (!this.hidden) { + this.show(this.config.animationSpeed, { lockString: this.identifier }); + this.loaded = true; + this.updateDom(this.config.animationSpeed); + } }, /* scheduleUpdate()