Merge pull request #3683

d3d7841 Receive: remove highlight of QR code menu if no menu item is hovered (rating89us)
This commit is contained in:
luigi1111 2021-09-05 13:04:38 -04:00
commit facec65dfc
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -152,13 +152,16 @@ Rectangle {
Menu {
id: qrMenu
title: "QrCode"
currentIndex: menuItem1.hovered ? 0 : menuItem2.hovered ? 1 : -1
MenuItem {
id: menuItem1
text: qsTr("Copy to clipboard") + translationManager.emptyString;
onTriggered: walletManager.saveQrCodeToClipboard(generateQRCodeString())
}
MenuItem {
id: menuItem2
text: qsTr("Save as Image") + translationManager.emptyString;
onTriggered: qrFileDialog.open()
}