mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-29 18:14:16 +00:00
Fixed a bug where the play queue view would not always correctly scroll
to the playing track on startup after restoring the session.
This commit is contained in:
parent
242d9d2c47
commit
2d0f550e10
@ -107,6 +107,8 @@ namespace musik {
|
|||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
double time = prefs->GetDouble(keys::LastPlayQueueTime, 0.0f);
|
double time = prefs->GetDouble(keys::LastPlayQueueTime, 0.0f);
|
||||||
playback.Prepare(index, time);
|
playback.Prepare(index, time);
|
||||||
|
playback.QueueEdited(); /* hack to get the play queue view to scroll
|
||||||
|
to the track we just prepared. */
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user