feat: retry opening network locations after mounting
This commit is contained in:
parent
7711b4bcc0
commit
c7e9828d7b
9 changed files with 333 additions and 56 deletions
|
|
@ -64,6 +64,11 @@ pub enum Favorite {
|
|||
Pictures,
|
||||
Videos,
|
||||
Path(PathBuf),
|
||||
Network {
|
||||
uri: String,
|
||||
name: String,
|
||||
path: PathBuf,
|
||||
},
|
||||
}
|
||||
|
||||
impl Favorite {
|
||||
|
|
@ -95,6 +100,7 @@ impl Favorite {
|
|||
Self::Pictures => dirs::picture_dir(),
|
||||
Self::Videos => dirs::video_dir(),
|
||||
Self::Path(path) => Some(path.clone()),
|
||||
Self::Network { path, .. } => Some(path.clone()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue