From 8957f488dc9e305abb93af790ae0afc008837fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 30 Nov 2024 14:56:27 +0100 Subject: [PATCH] places-menu: Update fake mount operation source gnome-shell now checks for an associated drive to automatically cancel the operation on disconnect, so fake the corresponding method. While at it, drop the `get_icon()` method that hasn't been used for quite a while now. Closes: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/508 Part-of: --- extensions/places-menu/placeDisplay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/places-menu/placeDisplay.js b/extensions/places-menu/placeDisplay.js index 70165661..44362885 100644 --- a/extensions/places-menu/placeDisplay.js +++ b/extensions/places-menu/placeDisplay.js @@ -54,8 +54,8 @@ class PlaceInfo extends EventEmitter { return; } - let source = { - get_icon: () => this.icon, + const source = { + get_drive: () => null, }; let op = new ShellMountOperation.ShellMountOperation(source); try {