Add open in new tab for Network and Recents
This commit is contained in:
parent
40a02bb2fc
commit
97abc76c8d
1 changed files with 10 additions and 0 deletions
10
src/app.rs
10
src/app.rs
|
|
@ -3462,9 +3462,19 @@ impl Application for App {
|
||||||
}
|
}
|
||||||
NavMenuAction::OpenInNewTab(entity) => {
|
NavMenuAction::OpenInNewTab(entity) => {
|
||||||
match self.nav_model.data::<Location>(entity) {
|
match self.nav_model.data::<Location>(entity) {
|
||||||
|
Some(Location::Network(ref uri, ref display_name)) => {
|
||||||
|
return self.open_tab(
|
||||||
|
Location::Network(uri.clone(), display_name.clone()),
|
||||||
|
false,
|
||||||
|
None,
|
||||||
|
);
|
||||||
|
}
|
||||||
Some(Location::Path(ref path)) => {
|
Some(Location::Path(ref path)) => {
|
||||||
return self.open_tab(Location::Path(path.clone()), false, None);
|
return self.open_tab(Location::Path(path.clone()), false, None);
|
||||||
}
|
}
|
||||||
|
Some(Location::Recents) => {
|
||||||
|
return self.open_tab(Location::Recents, false, None);
|
||||||
|
}
|
||||||
Some(Location::Trash) => {
|
Some(Location::Trash) => {
|
||||||
return self.open_tab(Location::Trash, false, None);
|
return self.open_tab(Location::Trash, false, None);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue