diff options
author | Max Kellermann <max@musicpd.org> | 2018-06-03 20:20:37 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-06-03 20:20:37 +0200 |
commit | 8d49c2d02895bb793f391b32c5191208c527291f (patch) | |
tree | 35ea39b92681b870ad33b4cd5be31783bb5b0190 /src/neighbor | |
parent | e560f6bc63f2c51e48e4670910cb7c62698d115d (diff) |
neighbor/udisks: show only filesystems, hide raw drives
Diffstat (limited to 'src/neighbor')
-rw-r--r-- | src/neighbor/plugins/UdisksNeighborPlugin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/neighbor/plugins/UdisksNeighborPlugin.cxx b/src/neighbor/plugins/UdisksNeighborPlugin.cxx index 1e14bea44..b5927fd6c 100644 --- a/src/neighbor/plugins/UdisksNeighborPlugin.cxx +++ b/src/neighbor/plugins/UdisksNeighborPlugin.cxx @@ -57,7 +57,8 @@ struct UdisksObject { :path(_path) {} bool IsValid() const noexcept { - return !drive_id.empty() || !block_id.empty(); + return is_filesystem && + (!drive_id.empty() || !block_id.empty()); } std::string GetUri() const noexcept { |