Fixed a bug in the UI that would scroll text on edit window popups when it shouldn't

This commit is contained in:
2023-08-08 10:50:07 -06:00
parent 653c7274b0
commit d32f2b538d
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ impl<'a> App<'a> {
self.push_navigation_stack(route);
}
pub fn get_current_route(&'a self) -> &'a Route {
pub fn get_current_route(&self) -> &Route {
self.navigation_stack.last().unwrap_or(&DEFAULT_ROUTE)
}
}
+4 -2
View File
@@ -92,7 +92,8 @@ fn draw_edit_collection_confirmation_prompt<B: Backend>(
.collections
.current_selection()
.title
.to_string(),
.text
.clone(),
app
.data
.radarr_data
@@ -110,7 +111,8 @@ fn draw_edit_collection_confirmation_prompt<B: Backend>(
.filtered_collections
.current_selection()
.title
.to_string(),
.text
.clone(),
app
.data
.radarr_data
+4 -2
View File
@@ -87,7 +87,8 @@ fn draw_edit_movie_confirmation_prompt<B: Backend>(
.movies
.current_selection()
.title
.to_string(),
.text
.clone(),
app
.data
.radarr_data
@@ -104,7 +105,8 @@ fn draw_edit_movie_confirmation_prompt<B: Backend>(
.filtered_movies
.current_selection()
.title
.to_string(),
.text
.clone(),
app
.data
.radarr_data