[gnome-shell-extensions] places-menu: Mark mounts that can be unmounted as removable



commit 0d8d6dceb071290dd1cae6097d327169b603c018
Author: Michael Lawton <michael lawton nz>
Date:   Mon Jan 11 23:48:03 2021 +0000

    places-menu: Mark mounts that can be unmounted as removable
    
    While the eject() code falls back to unmount() for mounts that
    don't support ejecting, it's not possible to actually do so
    because we hide the eject button.
    
    Fix this by treating all mounts as removable that can either be
    ejected or unmounted.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/161
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/152>

 extensions/places-menu/placeDisplay.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/extensions/places-menu/placeDisplay.js b/extensions/places-menu/placeDisplay.js
index ae9ee9f..bb78d5e 100644
--- a/extensions/places-menu/placeDisplay.js
+++ b/extensions/places-menu/placeDisplay.js
@@ -194,7 +194,7 @@ class PlaceDeviceInfo extends PlaceInfo {
     }
 
     isRemovable() {
-        return this._mount.can_eject();
+        return this._mount.can_eject() || this._mount.can_unmount();
     }
 
     eject() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]