fix: update network path when entering uri

closes: #1406
This commit is contained in:
Cheong Lau 2025-12-07 09:53:22 +10:00 committed by Jacob Kauffmann
parent 11429214c8
commit 7c7dbe7178
3 changed files with 10 additions and 7 deletions

View file

@ -1362,11 +1362,11 @@ pub struct EditLocation {
impl EditLocation {
pub fn resolve(&self) -> Option<Location> {
if let Location::Network(uri, _, path) = &self.location {
if let Location::Network(uri, ..) = &self.location {
MOUNTERS
.values()
.find_map(|mounter| mounter.dir_info(uri))
.map(|(uri, display_name)| Location::Network(uri, display_name, path.clone()))
.map(|(uri, display_name, path_opt)| Location::Network(uri, display_name, path_opt))
} else {
let Some(selected) = self.selected else {
return Some(self.location.clone());