diff --git a/core/src/components/popup.rs b/core/src/components/popup.rs index ea1f831..6a1c695 100644 --- a/core/src/components/popup.rs +++ b/core/src/components/popup.rs @@ -43,10 +43,7 @@ pub struct Popup { impl Popup { pub fn new() -> Self { - Self { - popup_text: String::from("Scanning Disks..."), - ..Default::default() - } + Self::default() } } diff --git a/deja_vu/src/app.rs b/deja_vu/src/app.rs index 4acea6e..c235f3a 100644 --- a/deja_vu/src/app.rs +++ b/deja_vu/src/app.rs @@ -269,6 +269,10 @@ impl App { } let action_tx = self.action_tx.clone(); + action_tx.send(Action::DisplayPopup( + popup::Type::Info, + String::from("Scanning Disks..."), + ))?; loop { self.handle_events(&mut tui).await?; self.handle_actions(&mut tui)?;