neighbor/udisks: show only filesystems, hide raw drives

This commit is contained in:
Max Kellermann 2018-06-03 20:20:37 +02:00
parent e560f6bc63
commit 8d49c2d028
1 changed files with 2 additions and 1 deletions

View File

@ -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 {