From 8d49c2d02895bb793f391b32c5191208c527291f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 3 Jun 2018 20:20:37 +0200 Subject: neighbor/udisks: show only filesystems, hide raw drives --- src/neighbor/plugins/UdisksNeighborPlugin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3