drive-menu: Disconnect volume monitor signals

The handler IDs were renamed at some point, resulting in the signals
not being disconnected on disable.
This commit is contained in:
Florian Müllner
2018-05-10 18:56:23 +02:00
parent f25ffe6f63
commit f59ab1272d
+5 -5
View File
@@ -175,11 +175,11 @@ class DriveMenu extends PanelMenu.Button {
}
destroy() {
if (this._connectedId) {
this._monitor.disconnect(this._connectedId);
this._monitor.disconnect(this._disconnectedId);
this._connectedId = 0;
this._disconnectedId = 0;
if (this._addedId) {
this._monitor.disconnect(this._addedId);
this._monitor.disconnect(this._removedId);
this._addedId = 0;
this._removedId = 0;
}
super.destroy();