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 { Menu {
id: qrMenu id: qrMenu
title: "QrCode" title: "QrCode"
currentIndex: menuItem1.hovered ? 0 : menuItem2.hovered ? 1 : -1
MenuItem { MenuItem {
id: menuItem1
text: qsTr("Copy to clipboard") + translationManager.emptyString; text: qsTr("Copy to clipboard") + translationManager.emptyString;
onTriggered: walletManager.saveQrCodeToClipboard(generateQRCodeString()) onTriggered: walletManager.saveQrCodeToClipboard(generateQRCodeString())
} }
MenuItem { MenuItem {
id: menuItem2
text: qsTr("Save as Image") + translationManager.emptyString; text: qsTr("Save as Image") + translationManager.emptyString;
onTriggered: qrFileDialog.open() onTriggered: qrFileDialog.open()
} }