From fa00c6c7a13e03f850a5acd4248382f3af88d02a Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Tue, 17 Mar 2026 08:36:38 -0700 Subject: [PATCH] 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 --- ui/browsing/artistpage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/browsing/artistpage.go b/ui/browsing/artistpage.go index 62c630c..2792e8e 100644 --- a/ui/browsing/artistpage.go +++ b/ui/browsing/artistpage.go @@ -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