From f08861b254d9d57fd492d66eecabb5500ae5ad83 Mon Sep 17 00:00:00 2001 From: claudiux Date: Fri, 31 May 2024 00:38:21 +0200 Subject: [PATCH] v7.4.3 - Wait a few seconds before refreshing data after a change in network status --- .../files/SpicesUpdate@claudiux/6.0/applet.js | 6 +++++- .../files/SpicesUpdate@claudiux/CHANGELOG.md | 3 +++ .../files/SpicesUpdate@claudiux/metadata.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/6.0/applet.js b/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/6.0/applet.js index 6ee400a0b87..d83ebea3b2b 100755 --- a/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/6.0/applet.js +++ b/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/6.0/applet.js @@ -611,7 +611,11 @@ class SpicesUpdate extends IconApplet { //~ logDebug("The network connectivity is now FULL."); //~ logDebug("this.netMonitors.length: "+this.netMonitors.length); this.applet_running = true; - this._on_refresh_pressed(); + let id = setTimeout(() => { + this._on_refresh_pressed(); + clearTimeout(id); + id = null + }, 10000); } else { //~ logDebug("The network connectivity has been LOST."); //~ logDebug("this.netMonitors.length: "+this.netMonitors.length); diff --git a/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/CHANGELOG.md b/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/CHANGELOG.md index 5ce13d07495..c0b6e5b939d 100755 --- a/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/CHANGELOG.md +++ b/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/CHANGELOG.md @@ -1,3 +1,6 @@ +### v7.4.3~20240531 + * Wait a few seconds before refreshing data after a change in network status. + ### v7.4.2~20240805 * Saves memory. diff --git a/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/metadata.json b/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/metadata.json index 99ca1de0f13..7335ba4a9ce 100755 --- a/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/metadata.json +++ b/SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/metadata.json @@ -3,7 +3,7 @@ "name": "Spices Update", "max-instances": "1", "hide-configuration": false, - "version": "7.4.2", + "version": "7.4.3", "description": "Warns you when installed Spices (actions, applets, desklets, extensions, themes) require an update or new Spices are available.", "multiversion": true, "cinnamon-version": [