Refresh, disk scan, and trigger auto-scan support and partial implementation for manual searches

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 69981857d8
commit 1ad1b16668
12 changed files with 426 additions and 75 deletions
+8
View File
@@ -108,6 +108,14 @@ impl App {
pub fn get_current_route(&self) -> &Route {
self.navigation_stack.last().unwrap_or(&DEFAULT_ROUTE)
}
pub fn get_previous_route(&self) -> &Route {
if self.navigation_stack.len() > 1 {
&self.navigation_stack[self.navigation_stack.len() - 2]
} else {
self.get_current_route()
}
}
}
impl Default for App {