chore: initialize ui before downloader

This commit is contained in:
Tal 2025-12-04 19:23:07 +01:00
parent b36cd89638
commit 1c8c788d76

View File

@ -97,8 +97,8 @@ impl Player {
sink.set_volume(volume.float());
Ok(Self {
downloader: Downloader::init(args.buffer_size as usize, list, tx.clone()).await,
ui: ui::Handle::init(tx.clone(), urx, state, &args).await?,
downloader: Downloader::init(args.buffer_size as usize, list, tx.clone()).await,
waiter: waiter::Handle::new(sink.clone(), tx.clone()),
bookmarks: Bookmarks::load().await?,
current,