Skip to content

Commit 7beba2d

Browse files
authored
SpiceSpy v5.7.1: Minor bugfixes (#8129)
1 parent 2ff1e66 commit 7beba2d

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

SpiceSpy@claudiux/files/SpiceSpy@claudiux/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v5.7.1~20251230
2+
* Minor bugfixes.
3+
14
### v5.7.0~20251228
25
* You can now interrupt a refresh.
36
* You can request to change the icon color when refreshing. You can choose this color.

SpiceSpy@claudiux/files/SpiceSpy@claudiux/applet.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class SpiceSpy extends Applet.TextIconApplet {
337337

338338
this.fistTime = true;
339339
this.loopId = null;
340-
this.jobsLoopId = null;
340+
this.commentsJobsLoopId = null;
341341
this.issuesLoopId = null;
342342
this.is_looping = true;
343343

@@ -726,7 +726,8 @@ class SpiceSpy extends Applet.TextIconApplet {
726726
const currentTime = parseInt(new Date / 1000);
727727
const difference = currentTime - jsonModifTime;
728728
if (difference >= 900) { // 900s = 15 min.
729-
Util.spawnCommandLineAsync(CACHE_UPDATER+" --update-all");
729+
//~ Util.spawnCommandLineAsync(CACHE_UPDATER+" --update-all");
730+
Util.spawnCommandLineAsync(CACHE_UPDATER);
730731
}
731732
} else {
732733
Util.spawnCommandLineAsync(CACHE_INIT);
@@ -926,7 +927,7 @@ class SpiceSpy extends Applet.TextIconApplet {
926927
this.menu.addMenuItem(read_all);
927928
}
928929

929-
if (this.issuesJobsList.length === 0) {
930+
if (this.issuesJobsList.length === 0 && this.commentsJobsList.length === 0) {
930931
let refresh = new PopupMenu.PopupIconMenuItem(_("Refresh"), "view-refresh-symbolic", St.IconType.SYMBOLIC);
931932
refresh.connect("activate",
932933
() => {
@@ -949,16 +950,16 @@ class SpiceSpy extends Applet.TextIconApplet {
949950
refresh_in_progress.connect("activate",
950951
() => {
951952
if (this.menu) this.menu.toggle(true);
952-
if (this.issuesLoopId != null) {
953-
source_remove(this.issuesLoopId);
954-
}
955-
this.issuesLoopId = null;
953+
//~ if (this.issuesLoopId != null) {
954+
//~ source_remove(this.issuesLoopId);
955+
//~ }
956+
//~ this.issuesLoopId = null;
956957
this.issuesJobsList = [];
957958

958-
if (this.jobsLoopId != null) {
959-
source_remove(this.jobsLoopId);
960-
}
961-
this.jobsLoopId = null;
959+
//~ if (this.commentsJobsLoopId != null) {
960+
//~ source_remove(this.commentsJobsLoopId);
961+
//~ }
962+
//~ this.commentsJobsLoopId = null;
962963
this.commentsJobsList = [];
963964
//~ this.is_looping = true;
964965
//~ this.fistTime = false;
@@ -1011,7 +1012,7 @@ class SpiceSpy extends Applet.TextIconApplet {
10111012
this.renew_caches();
10121013

10131014
this.loopId = timeout_add_seconds(60, () => { this.loop() });
1014-
this.jobsLoopId = timeout_add_seconds(15, () => { this.commentsJobs_loop(); return this.is_looping; });
1015+
this.commentsJobsLoopId = timeout_add_seconds(15, () => { this.commentsJobs_loop(); return this.is_looping; });
10151016
this.iconColorLoopId = timeout_add_seconds(1, () => { this.setIconColor(); return this.is_looping; });
10161017

10171018
this.update_issues_json();
@@ -1032,7 +1033,7 @@ class SpiceSpy extends Applet.TextIconApplet {
10321033
remove_all_sources();
10331034
if (this.menu) this.menu.removeAll();
10341035
this.loopId = null;
1035-
this.jobsLoopId = null;
1036+
this.commentsJobsLoopId = null;
10361037
this.issuesLoopId = null;
10371038
this.issuesJsonLoopId = null;
10381039
} // End of on_applet_removed_from_panel

SpiceSpy@claudiux/files/SpiceSpy@claudiux/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"uuid": "SpiceSpy@claudiux",
33
"name": "SpiceSpy",
44
"description": "Notifies you when there's a change to your favorite Spices on the website.",
5-
"version": "5.7.0",
5+
"version": "5.7.1",
66
"max-instances": 1,
77
"author": "claudiux"
88
}

0 commit comments

Comments
 (0)