neighbor/udisks: show only filesystems, hide raw drives
This commit is contained in:
parent
e560f6bc63
commit
8d49c2d028
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue