Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(tui): no terminal clear on focus change
Samir Hossains2b92e727352d
diff --git a/src/tui/app.rs b/src/tui/app.rsindex 23944dd..7ccb552 100644--- a/src/tui/app.rs+++ b/src/tui/app.rs@@ -448,6 +448,12 @@ impl App {}}+ fn prepare_image_soft_refresh(&mut self) {+ self.state.poster_protocol = None;+ self.state.search_poster_protocols.clear();+ self.state.dirty = true;+ }+fn cycle_details_pane(&mut self, forward: bool) {use crate::tui::state::DetailsPane;@@ -1043,9 +1049,7 @@ impl App {return Some(());}Action::FocusChange => {- self.prepare_image_refresh();- self.state.poster_protocol = None;- self.state.search_poster_protocols.clear();+ self.prepare_image_soft_refresh();}Action::Resize(_w, _h) => {self.prepare_image_refresh();