mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
Merge pull request #3683
d3d7841
Receive: remove highlight of QR code menu if no menu item is hovered (rating89us)
This commit is contained in:
commit
facec65dfc
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue