Added horizontally scrollable text
This commit is contained in:
1 parent
44db47f8ee
commit
43e35da49f
9 files changed
+313
-76
No files matched your search
+3
-2
@@ -1,3 +1,4 @@
|
||||
use crate::app::models::HorizontallyScrollableText;
|
||||
use crate::app::{App, Route};
|
||||
use crate::event::Key;
|
||||
use crate::handlers::radarr_handler::handle_radarr_key_events;
|
||||
@@ -14,7 +15,7 @@ pub async fn handle_key_events(key: Key, app: &mut App) {
|
||||
}
|
||||
|
||||
pub async fn handle_clear_errors(app: &mut App) {
|
||||
if !app.error.is_empty() {
|
||||
app.error = String::default();
|
||||
if !app.error.text.is_empty() {
|
||||
app.error = HorizontallyScrollableText::default();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user