feat(app): Dispatch support for all relevant Sonarr blocks

This commit is contained in:
2024-11-27 17:06:20 -07:00
parent 73a4129000
commit f139db07d9
86 changed files with 4075 additions and 3005 deletions
+4 -4
View File
@@ -290,8 +290,8 @@ impl TabState {
&self.tabs[self.index]
}
pub fn get_active_route(&self) -> &Route {
&self.tabs[self.index].route
pub fn get_active_route(&self) -> Route {
self.tabs[self.index].route
}
pub fn get_active_tab_help(&self) -> &str {
@@ -332,8 +332,8 @@ where
BlockSelectionState { blocks, index: 0 }
}
pub fn get_active_block(&self) -> &T {
&self.blocks[self.index]
pub fn get_active_block(&self) -> T {
self.blocks[self.index]
}
pub fn next(&mut self) {