Fix #881: discography sort button regression on Artist page (#882)

The early return added in 13cb672 did not account for the reSort flag,
causing the sort button to have no effect when already viewing the
discography tab. Also extend the early-return guard to cover the
groupedReleases case for consistency.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Drew Weymouth
2026-03-17 08:36:38 -07:00
committed by GitHub
co-authored by Claude Sonnet 4.6
parent e23dfb8554
commit fa00c6c7a1
+1 -1
View File
@@ -342,7 +342,7 @@ func (a *ArtistPage) load() {
}
func (a *ArtistPage) showAlbumGrid(reSort bool) {
if a.activeView == 0 && a.albumGrid != nil {
if a.activeView == 0 && (a.albumGrid != nil || a.groupedReleases != nil) && !reSort {
return // already showing album grid
}
a.activeView = 0