parent
11429214c8
commit
7c7dbe7178
3 changed files with 10 additions and 7 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue