Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CinnamonNotificationsApplet extends Applet.TextIconApplet {

// Events
Main.messageTray.connect('notify-applet-update', Lang.bind(this, this._notification_added));
global.settings.connect('changed::' + PANEL_EDIT_MODE_KEY, Lang.bind(this, this._on_panel_edit_mode_changed));
this.panelEditModeHandler = global.settings.connect('changed::' + PANEL_EDIT_MODE_KEY, Lang.bind(this, this._on_panel_edit_mode_changed));

// States
this._blinking = false;
Expand All @@ -53,6 +53,7 @@ class CinnamonNotificationsApplet extends Applet.TextIconApplet {
on_applet_removed_from_panel () {
Main.keybindingManager.removeHotKey("notification-open-" + this.instance_id);
Main.keybindingManager.removeHotKey("notification-clear-" + this.instance_id);
global.settings.disconnect(this.panelEditModeHandler);
}

_openMenu() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CinnamonPrintersApplet extends Applet.TextIconApplet {
this.settings = new Settings.AppletSettings(this, metadata.uuid, instance_id);
this.settings.bind('show-icon', 'show_icon', this.update);

global.settings.connect('changed::' + PANEL_EDIT_MODE_KEY, Lang.bind(this, this._on_panel_edit_mode_changed));
this.panelEditModeHandler = global.settings.connect('changed::' + PANEL_EDIT_MODE_KEY, Lang.bind(this, this._on_panel_edit_mode_changed));

this.jobsCount = 0;
this.printersCount = 0;
Expand All @@ -56,6 +56,7 @@ class CinnamonPrintersApplet extends Applet.TextIconApplet {

on_applet_removed_from_panel() {
this.settings.finalize();
global.settings.disconnect(this.panelEditModeHandler);
}

_on_panel_edit_mode_changed () {
Expand Down
Loading