mirror of
https://github.com/figsoda/mmtc
synced 2024-11-22 15:13:03 +00:00
update selection after updating queue
This commit is contained in:
parent
06db49324e
commit
fbe05996fd
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ async fn run() -> Result<()> {
|
||||||
.context("Failed to draw to terminal")?,
|
.context("Failed to draw to terminal")?,
|
||||||
Command::UpdateQueue(new_queue) => {
|
Command::UpdateQueue(new_queue) => {
|
||||||
queue = new_queue;
|
queue = new_queue;
|
||||||
|
selected = status.song.map_or(0, |song| song.pos);
|
||||||
tx.send(Command::UpdateFrame).await?;
|
tx.send(Command::UpdateFrame).await?;
|
||||||
}
|
}
|
||||||
Command::UpdateStatus(new_status) => {
|
Command::UpdateStatus(new_status) => {
|
||||||
|
|
Loading…
Reference in a new issue