qml: Only enable Invoices menu option when there is a wallet opened
This commit is contained in:
@@ -53,6 +53,7 @@ Item {
|
|||||||
action: Action {
|
action: Action {
|
||||||
text: qsTr('Invoices');
|
text: qsTr('Invoices');
|
||||||
onTriggered: menu.openPage(Qt.resolvedUrl('Invoices.qml'))
|
onTriggered: menu.openPage(Qt.resolvedUrl('Invoices.qml'))
|
||||||
|
enabled: Daemon.currentWallet
|
||||||
icon.source: '../../icons/tab_receive.png'
|
icon.source: '../../icons/tab_receive.png'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user