mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
backend: Use tokio broadcast channels
This commit is contained in:
parent
3e2f73fc56
commit
cb3e958f1b
5 changed files with 42 additions and 38 deletions
|
|
@ -52,7 +52,7 @@ impl Window {
|
|||
});
|
||||
|
||||
spawn!(@clone this, async move {
|
||||
while let Some(state) = this.backend.next_state().await {
|
||||
while let Ok(state) = this.backend.next_state().await {
|
||||
match state {
|
||||
BackendState::Loading => this.navigator.reset(),
|
||||
BackendState::NoMusicLibrary => this.show_welcome_screen(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue