Add open in new tab for Network and Recents

This commit is contained in:
Jason Rodney Hansen 2025-03-07 14:29:00 -07:00
parent 40a02bb2fc
commit 97abc76c8d

View file

@ -3462,9 +3462,19 @@ impl Application for App {
}
NavMenuAction::OpenInNewTab(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)) => {
return self.open_tab(Location::Path(path.clone()), false, None);
}
Some(Location::Recents) => {
return self.open_tab(Location::Recents, false, None);
}
Some(Location::Trash) => {
return self.open_tab(Location::Trash, false, None);
}