Skip to content

Commit

Permalink
[SpicesUpdate@claudiux] v7.6.2: Modification of the menu to fix linux…
Browse files Browse the repository at this point in the history
…mint#6781 (linuxmint#6806)

* SpicesUpdate v7.6.2: Modification of the menu to fix linuxmint#6781

* SpicesUpdate v7.6.2: Makes the menu at startup to fix linuxmint#6781
  • Loading branch information
claudiux authored Jan 26, 2025
1 parent 8717498 commit 503ef54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
13 changes: 6 additions & 7 deletions SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/6.0/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1979,9 +1979,10 @@ class SpicesUpdate extends IconApplet {
this.menu.addMenuItem(new PopupSeparatorMenuItem());

// sub-menu Configure
let _configure = new PopupSubMenuMenuItem(_("Configure"));
//~ let _configure = new PopupSubMenuMenuItem(_("Configure"));
let _configure = new PopupIconMenuItem(_("Configure")+" ⬇ ", "system-run", IconType.SYMBOLIC, { reactive: false });
this.menu.addMenuItem(_configure);
this.menu.addMenuItem(new PopupSeparatorMenuItem());
//~ this.menu.addMenuItem(new PopupSeparatorMenuItem());
let _configureOptions = [_("General"), _("Applets"), _("Desklets"), _("Extensions"), _("Themes"), _("Actions")];
let _iconNames = ["su-general", "su-applets", "su-desklets", "su-extensions", "su-themes", "su-actions"];
let _options = [];
Expand All @@ -1991,9 +1992,9 @@ class SpicesUpdate extends IconApplet {
let _icon = _iconNames[i];
_options[i] = new PopupIconMenuItem(_optionTitle, _icon, IconType.SYMBOLIC);
_options[i].connect("activate", (event) => spawnCommandLineAsync("/usr/bin/xlet-settings applet %s -i %s -t %s".format(UUID, this.instanceId, i.toString())));
_configure.menu.addMenuItem(_options[i])
this.menu.addMenuItem(_options[i])
}
_configure.menu.open();
//~ _configure.menu.open();

// button Reload this applet
if (DEBUG() || RELOAD()) {
Expand All @@ -2002,9 +2003,6 @@ class SpicesUpdate extends IconApplet {
this.menu.addMenuItem(_reload_button);
}

// Here the (future) notification list:


// Help
this.menu.addMenuItem(new PopupSeparatorMenuItem());

Expand Down Expand Up @@ -2526,6 +2524,7 @@ class SpicesUpdate extends IconApplet {
} // End of on_generic_changed

on_applet_added_to_panel() {
this.makeMenu();
this.get_default_icon_color();

// Run loop to refresh caches:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v7.6.2~20250126
* Modification of the menu to fix #6781.

### v7.6.1~20250120
* Fixes #6776.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Spices Update",
"max-instances": "1",
"hide-configuration": false,
"version": "7.6.1",
"version": "7.6.2",
"description": "Warns you when installed Spices (actions, applets, desklets, extensions, themes) require an update or new Spices are available.",
"multiversion": true,
"cinnamon-version": [
Expand Down

0 comments on commit 503ef54

Please sign in to comment.