Commit a1157c97 authored by Tranter Madi's avatar Tranter Madi 🌧 Committed by Nate Graham
Browse files

Never group entries that don't have the Album info

CC: 418800
parent 69edc479
Pipeline #170894 passed with stage
in 17 minutes and 29 seconds
......@@ -183,7 +183,7 @@ Kirigami.Page {
// separator
Rectangle {
readonly property bool largeSeparator: (entry.previousAlbum === entry.currentAlbum) && (entry.nextAlbum !== entry.currentAlbum) && !playListDelegate.nextDelegateHasSection
readonly property bool largeSeparator: entry.currentAlbum && (entry.previousAlbum === entry.currentAlbum) && (entry.nextAlbum !== entry.currentAlbum) && !playListDelegate.nextDelegateHasSection
implicitWidth: playListView.width - (largeSeparator ? 0 : Kirigami.Units.iconSizes.smallMedium)
implicitHeight: largeSeparator ? Kirigami.Units.largeSpacing : 1
......
......@@ -28,8 +28,8 @@ BasePlayListDelegate {
readonly property string currentAlbum: model.album || null
readonly property string nextAlbum: listDelegate.ListView.nextSection ? JSON.parse(listDelegate.ListView.nextSection)[0] : null
readonly property bool grouped: (previousAlbum === currentAlbum || nextAlbum === currentAlbum)
readonly property bool sectionVisible: (previousAlbum !== currentAlbum && nextAlbum === currentAlbum)
readonly property bool grouped: currentAlbum && (previousAlbum === currentAlbum || nextAlbum === currentAlbum)
readonly property bool sectionVisible: currentAlbum && (previousAlbum !== currentAlbum && nextAlbum === currentAlbum)
Accessible.role: Accessible.ListItem
Accessible.name: title + ' ' + album + ' ' + artist
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment