Added error windows with scrolling text, and a colorized Radarr logo. Also added header row with header tabs
This commit is contained in:
@@ -9,5 +9,12 @@ pub async fn handle_key_events(key: Key, app: &mut App) {
|
||||
Route::Radarr(active_radarr_block) => {
|
||||
handle_radarr_key_events(key, app, active_radarr_block).await
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn handle_clear_errors(app: &mut App) {
|
||||
if !app.error.is_empty() {
|
||||
app.error = String::default();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use crate::app::key_binding::DEFAULT_KEYBINDINGS;
|
||||
use crate::app::models::{Scrollable, ScrollableText, StatefulTable};
|
||||
use crate::app::radarr::ActiveRadarrBlock;
|
||||
use crate::handlers::handle_clear_errors;
|
||||
use crate::{App, Key};
|
||||
|
||||
pub async fn handle_radarr_key_events(
|
||||
@@ -97,6 +98,6 @@ async fn handle_esc(app: &mut App, active_radarr_block: ActiveRadarrBlock) {
|
||||
app.pop_navigation_stack();
|
||||
app.data.radarr_data.reset_movie_info_tab();
|
||||
}
|
||||
_ => (),
|
||||
_ => handle_clear_errors(app).await,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user