fix(sonarr): Pass the indexer ID directly alongside all TestIndexer events when publishing to the networking channel
This commit is contained in:
@@ -144,7 +144,9 @@ impl<'a> App<'a> {
|
||||
}
|
||||
ActiveSonarrBlock::TestIndexer => {
|
||||
self
|
||||
.dispatch_network_event(SonarrEvent::TestIndexer(None).into())
|
||||
.dispatch_network_event(
|
||||
SonarrEvent::TestIndexer(self.extract_sonarr_indexer_id().await).into(),
|
||||
)
|
||||
.await;
|
||||
}
|
||||
ActiveSonarrBlock::TestAllIndexers => {
|
||||
@@ -300,4 +302,8 @@ impl<'a> App<'a> {
|
||||
.text
|
||||
.clone()
|
||||
}
|
||||
|
||||
async fn extract_sonarr_indexer_id(&self) -> i64 {
|
||||
self.data.sonarr_data.indexers.current_selection().id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user