Depending on the user's wall configuration and the value of their Background Previews setting, it is possible for SeedQueueEntries with no mainPosition to be turned into previews before those which do have mainPosition set. This causes the restoration of previews to their previous spots in the main group to fail.
Reverting the change in 3695d0f and sorting SeedQueueEntries by their mainPosition value in updatePreparingPreviews fixes the problem and ensures that previews will always be restored to the correct position in the main group.
Depending on the user's wall configuration and the value of their Background Previews setting, it is possible for SeedQueueEntries with no
mainPosition
to be turned into previews before those which do havemainPosition
set. This causes the restoration of previews to their previous spots in the main group to fail.Reverting the change in 3695d0f and sorting SeedQueueEntries by their
mainPosition
value inupdatePreparingPreviews
fixes the problem and ensures that previews will always be restored to the correct position in the main group.