Hide shadowed mounts, may fix #1245
This commit is contained in:
parent
5edeea69f9
commit
c680492a9a
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ fn gio_icon_to_path(icon: &gio::Icon, size: u16) -> Option<PathBuf> {
|
|||
fn items(monitor: &gio::VolumeMonitor, sizes: IconSizes) -> MounterItems {
|
||||
let mut items: MounterItems = (monitor.mounts().into_iter())
|
||||
.enumerate()
|
||||
// Hide shadowed mounts
|
||||
.filter(|(_, mount)| !mount.is_shadowed())
|
||||
.map(|(i, mount)| {
|
||||
let root = MountExt::root(&mount);
|
||||
let is_remote = root
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue