diff --git a/CHANGELOG.md b/CHANGELOG.md index f27d084..b22f991 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,10 @@ Released on FIXME: > ❄️ Winter update 2022 ⛄ +- **Enhancements**: + - Find feature: + - A "wait popup" will now be displayed while searching files + ## 0.7.0 Released on 12/10/2021 diff --git a/src/ui/activities/filetransfer/update.rs b/src/ui/activities/filetransfer/update.rs index 77169e3..e3315f2 100644 --- a/src/ui/activities/filetransfer/update.rs +++ b/src/ui/activities/filetransfer/update.rs @@ -433,12 +433,16 @@ impl Update for FileTransferActivity { } (COMPONENT_INPUT_FIND, Msg::OnSubmit(Payload::One(Value::Str(input)))) => { self.umount_find_input(); + // Mount wait + self.mount_blocking_wait(format!(r#"Searching for "{}"…"#, input).as_str()); // Find let res: Result, String> = match self.browser.tab() { FileExplorerTab::Local => self.action_local_find(input.to_string()), FileExplorerTab::Remote => self.action_remote_find(input.to_string()), _ => panic!("Trying to search for files, while already in a find result"), }; + // Umount wait + self.umount_wait(); // Match result match res { Err(err) => {