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
13
src/menu.rs
13
src/menu.rs
|
|
@ -152,7 +152,11 @@ pub fn context_menu<'a>(
|
|||
match (&tab.mode, &tab.location) {
|
||||
(
|
||||
tab::Mode::App | tab::Mode::Desktop,
|
||||
Location::Desktop(..) | Location::Path(..) | Location::Search(..) | Location::Recents,
|
||||
Location::Desktop(..)
|
||||
| Location::Path(..)
|
||||
| Location::Search(..)
|
||||
| Location::Recents
|
||||
| Location::Network(_, _, Some(_)),
|
||||
) => {
|
||||
if selected_trash_only {
|
||||
children.push(menu_item(fl!("open"), Action::Open).into());
|
||||
|
|
@ -298,7 +302,11 @@ pub fn context_menu<'a>(
|
|||
}
|
||||
(
|
||||
tab::Mode::Dialog(dialog_kind),
|
||||
Location::Desktop(..) | Location::Path(..) | Location::Search(..) | Location::Recents,
|
||||
Location::Desktop(..)
|
||||
| Location::Path(..)
|
||||
| Location::Search(..)
|
||||
| Location::Recents
|
||||
| Location::Network(_, _, Some(_)),
|
||||
) => {
|
||||
if selected > 0 {
|
||||
if selected_dir == 1 && selected == 1 || selected_dir == 0 {
|
||||
|
|
@ -327,6 +335,7 @@ pub fn context_menu<'a>(
|
|||
}
|
||||
}
|
||||
(_, Location::Network(..)) => {
|
||||
dbg!(selected, &tab.mode);
|
||||
if selected > 0 {
|
||||
if selected_dir == 1 && selected == 1 || selected_dir == 0 {
|
||||
children.push(menu_item(fl!("open"), Action::Open).into());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue