Provide a keyboard shortcut to pull all release groups of an artist #233

Merged
wojtek merged 14 commits from 160---provide-a-keyboard-shortcut-to-pull-all-release-groups-of-an-artist into main 2024-12-30 23:42:20 +01:00
Showing only changes of commit 07b3e66f25 - Show all commits

View File

@ -20,16 +20,16 @@ use crate::tui::{
},
};
pub type FetchReceiver = mpsc::Receiver<MbApiResult>;
pub type MbApiReceiver = mpsc::Receiver<MbApiResult>;
pub struct FetchState {
fetch_rx: FetchReceiver,
lookup_rx: Option<FetchReceiver>,
search_rx: MbApiReceiver,
lookup_rx: Option<MbApiReceiver>,
}
impl FetchState {
pub fn new(fetch_rx: FetchReceiver) -> Self {
pub fn new(search_rx: MbApiReceiver) -> Self {
FetchState {
fetch_rx,
search_rx,
lookup_rx: None,
}
}
@ -43,7 +43,7 @@ impl FetchState {
}
}
}
self.fetch_rx.try_recv()
self.search_rx.try_recv()
}
}