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:
committed by
Florian Müllner
parent
d9932b8f55
commit
ee85839d60
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user