Skip to content

Fix Recently and Frequently Played sort buttons

Jack Hill requested to merge jackh/elisa:fix_recent_frequent_sort_button into master

The sortRole for both views were being changed to TitleRole, since each view is track-based (i.e. they display tracks, as opposed to albums, artists, etc.). I think the function responsible for this exists for future purposes when users will be able to switch between grid/list views manually.

Solution to is to just hardcode the sortRole and sortOrder of each view. This also fixes the problem where the sort menu had no text.

Note that the sorting for "Frequently Played" currently does sort purely based on each tracks' play count. This will be addressed in a different MR.

BUG: 442176

Edited by Jack Hill

Merge request reports

Loading