mirror of
https://github.com/figsoda/mmtc
synced 2024-11-22 07:03:05 +00:00
actually update selection after updating queue
This commit is contained in:
parent
fbe05996fd
commit
7f7d7cd422
1 changed files with 2 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue