qml: show menu also when no wallet loaded
This commit is contained in:
@@ -101,15 +101,28 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.centerIn: parent
|
anchors.fill: parent
|
||||||
width: parent.width
|
|
||||||
|
History {
|
||||||
|
id: history
|
||||||
|
visible: Daemon.currentWallet
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
Layout.fillHeight: true
|
||||||
spacing: 2*constants.paddingXLarge
|
spacing: 2*constants.paddingXLarge
|
||||||
visible: !Daemon.currentWallet
|
visible: !Daemon.currentWallet
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.fillHeight: true
|
||||||
|
}
|
||||||
Label {
|
Label {
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: qsTr('No wallet loaded')
|
text: qsTr('No wallet loaded')
|
||||||
font.pixelSize: constants.fontSizeXXLarge
|
font.pixelSize: constants.fontSizeXXLarge
|
||||||
Layout.alignment: Qt.AlignHCenter
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Pane {
|
Pane {
|
||||||
@@ -136,17 +149,10 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
Item {
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
anchors.fill: parent
|
|
||||||
visible: Daemon.currentWallet
|
|
||||||
|
|
||||||
History {
|
|
||||||
id: history
|
|
||||||
Layout.preferredWidth: parent.width
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
@@ -167,7 +173,12 @@ Item {
|
|||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
color: constants.darkerBackground
|
color: constants.darkerBackground
|
||||||
}
|
}
|
||||||
|
Item {
|
||||||
|
visible: !Daemon.currentWallet
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
FlatButton {
|
FlatButton {
|
||||||
|
visible: Daemon.currentWallet
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: 1
|
Layout.preferredWidth: 1
|
||||||
icon.source: '../../icons/tab_receive.png'
|
icon.source: '../../icons/tab_receive.png'
|
||||||
@@ -178,6 +189,7 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
visible: Daemon.currentWallet
|
||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
Layout.preferredWidth: 2
|
Layout.preferredWidth: 2
|
||||||
Layout.preferredHeight: parent.height * 2/3
|
Layout.preferredHeight: parent.height * 2/3
|
||||||
@@ -185,6 +197,7 @@ Item {
|
|||||||
color: constants.darkerBackground
|
color: constants.darkerBackground
|
||||||
}
|
}
|
||||||
FlatButton {
|
FlatButton {
|
||||||
|
visible: Daemon.currentWallet
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: 1
|
Layout.preferredWidth: 1
|
||||||
icon.source: '../../icons/tab_send.png'
|
icon.source: '../../icons/tab_send.png'
|
||||||
|
|||||||
Reference in New Issue
Block a user