drive-menu: Don't override ClutterActor.destroy()

Now that PanelMenu.Button was made an StWidget subclass, the destroy()
method actually maps to the ClutterActor method, and overriding it
results in warnings when the extension is disabled. So instead, use
the existing ::destroy handler.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/113
This commit is contained in:
Florian Müllner
2018-10-10 20:50:54 +02:00
committed by Florian Müllner
parent d9932b8f55
commit ee85839d60
+2 -2
View File
@@ -176,7 +176,7 @@ class DriveMenu extends PanelMenu.Button {
log ('Removing a mount that was never added to the menu');
}
destroy() {
_onDestroy() {
if (this._addedId) {
this._monitor.disconnect(this._addedId);
this._monitor.disconnect(this._removedId);
@@ -184,7 +184,7 @@ class DriveMenu extends PanelMenu.Button {
this._removedId = 0;
}
super.destroy();
super._onDestroy();
}
});