feat(handler): Wired in the blocklist handler to the main handlers

This commit is contained in:
2024-12-02 16:39:40 -07:00
parent 4b7185fbb0
commit 3186fb42e7
2 changed files with 22 additions and 0 deletions
+4
View File
@@ -1,3 +1,4 @@
use blocklist::BlocklistHandler;
use downloads::DownloadsHandler;
use library::LibraryHandler;
@@ -37,6 +38,9 @@ impl<'a, 'b> KeyEventHandler<'a, 'b, ActiveSonarrBlock> for SonarrHandler<'a, 'b
_ if DownloadsHandler::accepts(self.active_sonarr_block) => {
DownloadsHandler::with(self.key, self.app, self.active_sonarr_block, self.context).handle()
}
_ if BlocklistHandler::accepts(self.active_sonarr_block) => {
BlocklistHandler::with(self.key, self.app, self.active_sonarr_block, self.context).handle()
}
_ => self.handle_key_event(),
}
}