Refactored the UI module and the handlers module to do a more chain-of-responsibility method to manage the UI's and handlers for different key events. Also, initial work for indexer settings as well

This commit is contained in:
2023-08-08 10:50:07 -06:00
parent 718613d59f
commit cf11527fef
67 changed files with 5255 additions and 2216 deletions
+2 -2
View File
@@ -445,12 +445,12 @@ mod test_utils {
#[macro_export]
macro_rules! test_handler_delegation {
($base:expr, $active_block:expr) => {
($handler:ident, $base:expr, $active_block:expr) => {
let mut app = App::default();
app.push_navigation_stack($base.clone().into());
app.push_navigation_stack($active_block.clone().into());
RadarrHandler::with(
$handler::with(
&DEFAULT_KEYBINDINGS.esc.key,
&mut app,
&$active_block,