Skip to content

Commit

Permalink
Fixes index panic on refresh operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxserxxx committed May 15, 2024
1 parent 581b478 commit b7247a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion page_browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ func (ui *Ui) createBrowserPage(indexes *[]subsonic.SubsonicIndex) *BrowserPage
})

browserPage.artistList.SetChangedFunc(func(index int, _ string, _ string, _ rune) {
browserPage.handleEntitySelected(browserPage.artistIdList[index])
if index < len(browserPage.artistIdList) {
browserPage.handleEntitySelected(browserPage.artistIdList[index])
}
})

// "add to playlist" modal
Expand Down

0 comments on commit b7247a7

Please sign in to comment.