From fbe05996fde07a9bbb4d5d8f7b8c9b5470d99e40 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 31 Oct 2020 15:22:17 -0400 Subject: [PATCH] update selection after updating queue --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 2dd85e8..8628f74 100644 --- a/src/main.rs +++ b/src/main.rs @@ -162,6 +162,7 @@ async fn run() -> Result<()> { .context("Failed to draw to terminal")?, Command::UpdateQueue(new_queue) => { queue = new_queue; + selected = status.song.map_or(0, |song| song.pos); tx.send(Command::UpdateFrame).await?; } Command::UpdateStatus(new_status) => {