Skip to content

Commit

Permalink
pin-unpin-panel@anaximeno: Version 0.1.3 (#6345)
Browse files Browse the repository at this point in the history
* Update panel autohide type if the autohide type applet settings is changed
  • Loading branch information
anaximeno authored Aug 27, 2024
1 parent 4926137 commit c9b527c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PinUnpinPanelApplet extends Applet.IconApplet {
{
key: 'unpin-autohide-type',
value: 'unpin_autohide_type',
cb: null,
cb: this.on_applet_autohide_type_settings_changed,
},
{
key: 'use-custom-icons',
Expand Down Expand Up @@ -98,6 +98,10 @@ class PinUnpinPanelApplet extends Applet.IconApplet {
this.update_panel_applet_ui_state();
}

on_applet_autohide_type_settings_changed() {
if (!this.pinned) this.set_panel_autohide_state(this.unpin_autohide_type);
}

update_panel_applet_ui_state() {
if (this.use_custom_icons) {
this.set_applet_icon_name(this.pinned ? this.custom_unpin_icon : this.custom_pin_icon);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "0.1.2",
"version": "0.1.3",
"uuid": "pin-unpin-panel@anaximeno",
"name": "Pin-Unpin the Panel",
"multiversion": true,
"max-instances": -1,
"description": "An applet that lets you pin or unpin the panel, making it fixed or collapsible."
}
}

0 comments on commit c9b527c

Please sign in to comment.