Skip to content

Commit 8d97e56

Browse files
committed
xapp status: Make sure the recording icon size is set, disconnect
the recording signal when the applet is removed. The indicator had the correct size when Cinnamon started because it would receive an icon-theme-changed signal. If it got reloaded, that signal wasn't sent, so refresh() was never called on the indicator box.
1 parent 2bfdef2 commit 8d97e56

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class RecorderIcon {
3939

4040
this._recordListenerId = Main.screenRecorder.connect("recording", () => this._recordingStateChanged());
4141
this._recordingStateChanged();
42+
43+
this.refresh();
4244
}
4345

4446
_recordingStateChanged() {
@@ -97,6 +99,7 @@ class RecorderIcon {
9799
Main.screenRecorder.disconnect(this._recordListenerId);
98100
this._recordListenerId = 0;
99101
}
102+
this.actor.destroy();
100103
}
101104
}
102105

@@ -620,7 +623,7 @@ class CinnamonXAppStatusApplet extends Applet.Applet {
620623
delete this.ignoredProxies[key];
621624
};
622625

623-
this._recording_indicator.actor.destroy();
626+
this._recording_indicator.destroy();
624627
this._recording_indicator = null;
625628

626629
this.monitor = null;

0 commit comments

Comments
 (0)