neighbor/udisks: show only filesystems, hide raw drives
This commit is contained in:
@@ -57,7 +57,8 @@ struct UdisksObject {
|
|||||||
:path(_path) {}
|
:path(_path) {}
|
||||||
|
|
||||||
bool IsValid() const noexcept {
|
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 {
|
std::string GetUri() const noexcept {
|
||||||
|
Reference in New Issue
Block a user