fix metadata, thumbnails and gallery view for locally mounted drives

This commit is contained in:
Frederic Laing 2025-11-17 08:58:28 +01:00
parent f3b4e0bc6a
commit 26e223c4f0
No known key found for this signature in database
GPG key ID: C126157F0CDCD306
3 changed files with 33 additions and 2 deletions

View file

@ -1543,7 +1543,11 @@ impl App {
b = b.text(item.name()).data(MounterData(key, item.clone()));
let uri = item.uri();
if let Some(path) = item.path() {
b = b.data(Location::Network(uri, item.name(), Some(path)));
if item.is_remote() {
b = b.data(Location::Network(uri, item.name(), Some(path)));
} else {
b = b.data(Location::Path(path));
}
} else if !uri.is_empty() {
b = b.data(Location::Network(uri, item.name(), None));
}