qml: only allow wallet menu if on wallet specific page
This commit is contained in:
@@ -122,6 +122,7 @@ ApplicationWindow
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
enabled: Daemon.currentWallet && (!stack.currentItem.title || stack.currentItem.title == Daemon.currentWallet.name)
|
||||||
onClicked: {
|
onClicked: {
|
||||||
stack.getRoot().menu.open() // open wallet-menu
|
stack.getRoot().menu.open() // open wallet-menu
|
||||||
stack.getRoot().menu.y = toolbar.height
|
stack.getRoot().menu.y = toolbar.height
|
||||||
|
|||||||
Reference in New Issue
Block a user