mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Repair broken userdata.
The UserData of an item was not displaying, this should re-add it.
This commit is contained in:
parent
7b6c272aa9
commit
bb1e3ea21d
13 changed files with 79 additions and 41 deletions
|
@ -33,7 +33,7 @@ BaseDetailPage {
|
|||
property alias subtitle: pageHeader.description
|
||||
default property alias _data: content.data
|
||||
property real _playbackProsition: itemData.userData.playbackPositionTicks
|
||||
readonly property bool _userdataReady: itemData.status === J.ItemLoader.Ready && itemData.userData !== null
|
||||
readonly property bool _userdataReady: itemLoader.status === J.ItemLoader.Ready && itemData.userData !== null
|
||||
SilicaFlickable {
|
||||
anchors.fill: parent
|
||||
contentHeight: content.height + Theme.paddingLarge
|
||||
|
@ -60,7 +60,7 @@ BaseDetailPage {
|
|||
imageBlurhash: itemData.imageBlurHashes["Primary"][itemData.imageTags["Primary"]]
|
||||
Binding on favourited {
|
||||
when: _userdataReady
|
||||
value: itemData.userData.isFavorite
|
||||
value: itemData.userData.favorite
|
||||
}
|
||||
Binding on playProgress {
|
||||
when: _userdataReady
|
||||
|
@ -82,7 +82,7 @@ BaseDetailPage {
|
|||
}
|
||||
|
||||
Connections {
|
||||
target: itemData
|
||||
target: itemLoader
|
||||
onStatusChanged: {
|
||||
if (status === J.ItemLoader.Ready) {
|
||||
console.log(itemData.mediaStreams)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue