Browse Source

qml: Only enable Invoices menu option when there is a wallet opened

master
Sander van Grieken 3 years ago
parent
commit
78020e5cc9
  1. 1
      electrum/gui/qml/components/WalletMainView.qml

1
electrum/gui/qml/components/WalletMainView.qml

@ -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'
} }
} }

Loading…
Cancel
Save