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:
casey langen 2020-11-03 17:55:43 -08:00
parent 242d9d2c47
commit 2d0f550e10

View File

@ -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. */
} }
}); });
} }