Skip to content

Commit

Permalink
Merge pull request #7 from xxxserxxx/refresh-panic
Browse files Browse the repository at this point in the history
Fixes index panic on refresh operation.
  • Loading branch information
spezifisch authored Jul 30, 2024
2 parents 4e8b1d1 + b7247a7 commit 1fc505c
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 @@ -140,7 +140,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 1fc505c

Please sign in to comment.