1
0

add QEAddressListModel and initial Addresses.qml page.

show sane main view when no wallet loaded.
show error dialog when wallet could not be loaded.
show wallet up_to_date indicator in title bar.
refactor QETransactionListModel to be more self-contained.
This commit is contained in:
Sander van Grieken
2022-03-11 13:19:51 +01:00
parent 7e1606fe86
commit 17820b9346
5 changed files with 237 additions and 37 deletions

View File

@@ -31,6 +31,7 @@ ApplicationWindow
onClicked: stack.pop()
}
Item {
visible: Network.isTestNet
width: column.width
height: column.height
MouseArea {
@@ -46,7 +47,6 @@ ApplicationWindow
Column {
id: column
visible: Network.isTestNet
Image {
anchors.horizontalCenter: parent.horizontalCenter
width: 16
@@ -63,15 +63,22 @@ ApplicationWindow
}
}
Image {
Layout.preferredWidth: 16
Layout.preferredHeight: 16
source: Daemon.currentWallet.isUptodate ? "../../icons/status_connected.png" : "../../icons/status_lagging.png"
}
Label {
text: stack.currentItem.title
elide: Label.ElideRight
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
Layout.fillWidth: true
font.pointSize: 10
font.pixelSize: 14
font.bold: true
}
ToolButton {
text: qsTr("⋮")
onClicked: {
@@ -203,5 +210,10 @@ ApplicationWindow
// var dialog = _openWallet.createObject(app)
//dialog.open()
}
function onWalletOpenError(error) {
console.log('wallet open error')
var dialog = app.messageDialog.createObject(app, {'text': error})
dialog.open()
}
}
}