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:
co-authored by
Claude Sonnet 4.6
parent
e23dfb8554
commit
fa00c6c7a1
@@ -342,7 +342,7 @@ func (a *ArtistPage) load() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *ArtistPage) showAlbumGrid(reSort bool) {
|
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
|
return // already showing album grid
|
||||||
}
|
}
|
||||||
a.activeView = 0
|
a.activeView = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user