drive-menu: Stop using compatibility actor property
PanelMenu.Button sets up a `this.actor = this` property for compatibility, but let's reflect the actual new object hierarchy. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/113
This commit is contained in:
committed by
Florian Müllner
parent
efa882080f
commit
d9932b8f55
@@ -125,7 +125,7 @@ class DriveMenu extends PanelMenu.Button {
|
||||
|
||||
hbox.add_child(icon);
|
||||
hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
|
||||
this.actor.add_child(hbox);
|
||||
this.add_child(hbox);
|
||||
|
||||
this._monitor = Gio.VolumeMonitor.get();
|
||||
this._addedId = this._monitor.connect('mount-added', (monitor, mount) => {
|
||||
@@ -153,9 +153,9 @@ class DriveMenu extends PanelMenu.Button {
|
||||
|
||||
_updateMenuVisibility() {
|
||||
if (this._mounts.filter(i => i.actor.visible).length > 0)
|
||||
this.actor.show();
|
||||
this.show();
|
||||
else
|
||||
this.actor.hide();
|
||||
this.hide();
|
||||
}
|
||||
|
||||
_addMount(mount) {
|
||||
|
||||
Reference in New Issue
Block a user