Skip to content

Commit 48c2dac

Browse files
authored
Avoids 'destroy' errors for several applets (#7932)
1 parent 17fa484 commit 48c2dac

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/6.4/applet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ class SpicesUpdate extends IconApplet {
762762
let badgeSize = (fontSize + 1) * global.ui_scale;
763763
let iconSize = this.getPanelIconSize(IconType.SYMBOLIC);
764764

765-
if (this.badge != null) {
765+
if (this.actor.get_stage() != null && this.badge != null) {
766766
this.actor.remove_child(this.badge);
767767
this.badge = null;
768768
}

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v7.9.5~20251031
2+
* Avoids 'destroy' errors.
3+
14
### v7.9.4~20251012
25
* Improves access to settings.
36
* Adds Apply button to settings about Spices.

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Spices Update",
44
"max-instances": "1",
55
"hide-configuration": false,
6-
"version": "7.9.4",
6+
"version": "7.9.5",
77
"description": "Warns you when installed Spices (actions, applets, desklets, extensions, themes) require an update or new Spices are available.",
88
"multiversion": true,
99
"cinnamon-version": [

sound150@claudiux/files/sound150@claudiux/6.4/lib/s150PopupMenu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,9 @@ class Player extends PopupMenu.PopupMenuSection {
908908
}
909909

910910
try {
911-
if (this.coverBox && this.cover) {
911+
if (this.coverBox != null && this.cover != null) {
912912
let coverBoxChildren = this.coverBox.get_children();
913-
if (coverBoxChildren.indexOf(this.cover) > -1)
913+
if (coverBoxChildren.length > 0 && coverBoxChildren.indexOf(this.cover) > -1)
914914
this.coverBox.remove_child(this.cover);
915915
}
916916
} catch (e) {}

sound150@claudiux/files/sound150@claudiux/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v13.5.1~20251031
2+
* Avoids 'destroy' errors.
3+
14
### v13.5.0~20251030
25
* Adds the 'mic-mute' shortcut. See the FAQ in README to implement it.
36

sound150@claudiux/files/sound150@claudiux/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"max-instances": "1",
66
"description": "Enhanced sound applet",
77
"hide-configuration": false,
8-
"version": "13.5.0",
8+
"version": "13.5.1",
99
"cinnamon-version": [
1010
"2.8",
1111
"3.0",

0 commit comments

Comments
 (0)