Skip to content

Commit

Permalink
Only disable sorting while loading tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Sep 3, 2023
1 parent f217360 commit 3515736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/list/tracks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ auto List::Tracks::load(const lib::spt::page<lib::spt::track> &page,
}
}

setSortingEnabled(true);

if (page.has_next())
{
return true;
Expand All @@ -565,8 +567,6 @@ auto List::Tracks::load(const lib::spt::page<lib::spt::track> &page,
takeTopLevelItem(i);
}

setSortingEnabled(true);

getLikedTracks([this](const std::vector<lib::spt::track> &likedTracks)
{
for (const auto &likedTrack: likedTracks)
Expand Down

0 comments on commit 3515736

Please sign in to comment.