Commit 69e2c51b authored by Florian Müllner's avatar Florian Müllner

drive-menu: Don't assume mounts without volume are local

The intention of the code is to only expose actually plugged in
devices rather than network mounts, but the existing heuristics are
based on GVolume and simply assume a local mount where there's no
associated volume. Fill that gap by querying the ::remote filesystem
attribute in that case.

parent 2dbe692a
Pipeline #2980 passed with stage
in 4 minutes and 38 seconds
......@@ -55,9 +55,9 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
let volume = this.mount.get_volume();
if (volume == null) {
// probably a GDaemonMount, could be network or
// local, but we can't tell; assume it's local for now
return true;
let info = this.mount.get_root().query_filesystem_info(attr, null);
return !info.get_attribute_boolean(attr);
return volume.get_identifier('class') != 'network';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment