test: Added in unit tests for TUI support for multiple custom named Servarrs
This commit is contained in:
@@ -297,6 +297,10 @@ impl TabState {
|
||||
}
|
||||
|
||||
pub fn get_active_config(&self) -> &Option<ServarrConfig> {
|
||||
if self.tabs.is_empty() {
|
||||
return &None;
|
||||
}
|
||||
|
||||
&self.tabs[self.index].config
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user