fix(@wallet): prevent black image in token list

fixes #12718
This commit is contained in:
Anthony Laibe 2024-01-03 12:04:53 +01:00
parent e2fa5b756a
commit fb558edf61
2 changed files with 3 additions and 3 deletions

View File

@ -28,6 +28,7 @@ StatusListView {
height: 76
width: ListView.view.width
title: model.name
sensor.enabled: false
subTitle: qsTr("%n token(s) · Last updated %1 @%2",
"",
model.tokensCount).arg(LocaleUtils.formatDate(model.updatedAt * 1000)).arg(LocaleUtils.formatTime(model.updatedAt, Locale.ShortFormat))

View File

@ -59,10 +59,10 @@ StatusDialog {
CustomHeaderDelegate {}
}
delegate: CustomDelegate {}
/* This late binding has been added here because without it all
/* This onCompleted has been added here because without it all
the items in the list get initialised before the popup is launched
creating a delay */
Component.onCompleted: model = Qt.binding(() => root.tokensListModel)
Component.onCompleted: model = root.tokensListModel
}
header: StatusDialogHeader {
@ -205,7 +205,6 @@ StatusDialog {
id: sensor
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
}