1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-22 01:05:17 +00:00

Sailfish: do not crash when opening an audio folders

The QML side attempted to simply pass all items of type 'Audio' to the
PlaybackManager.playItem(). This does not work for folders and it will
crash. This does not fix the presentation of audio folders/playlists,
but it does fix the crash.
This commit is contained in:
Chris Josten 2022-04-27 11:03:18 +02:00
parent cab5f20469
commit 748e5bdf13
No known key found for this signature in database
GPG key ID: A69C050E9FD9FF6A

View file

@ -151,7 +151,7 @@ ApplicationWindow {
}
function navigateToItem(jellyfinId, mediaType, type, isFolder) {
if (mediaType === "Audio") {
if (mediaType === "Audio" && !isFolder) {
playbackManager.playItemId(jellyfinId)
} else {
pageStack.push(Utils.getPageUrl(mediaType, type, isFolder), {"itemId": jellyfinId});