From 7f7d7cd4226a1fea4c7169c2ba8a7261ba928409 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 31 Oct 2020 15:26:19 -0400 Subject: [PATCH] actually update selection after updating queue --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 8628f74..ce2dc34 100644 --- a/src/main.rs +++ b/src/main.rs @@ -163,6 +163,8 @@ async fn run() -> Result<()> { Command::UpdateQueue(new_queue) => { queue = new_queue; selected = status.song.map_or(0, |song| song.pos); + liststate = ListState::default(); + liststate.select(Some(selected)); tx.send(Command::UpdateFrame).await?; } Command::UpdateStatus(new_status) => {