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:
parent
cab5f20469
commit
748e5bdf13
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue