fix(NavBar) right clicking on Wallet, Community Portal and Settings highlight them

check if there indeed is a popup menu

Fixes #10824
This commit is contained in:
Lukáš Tinkl 2023-05-26 14:41:49 +02:00 committed by Lukáš Tinkl
parent 00bc25e2ec
commit a0020761eb
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ StatusIconTabButton {
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: {
if (mouse.button === Qt.RightButton) {
if (typeof popupMenuSlot.sourceComponent !== "undefined" && !popupMenuSlot.active)
if (!!popupMenuSlot.sourceComponent && !popupMenuSlot.active)
popupMenuSlot.active = true
if (popupMenuSlot.active) {
statusNavBarTabButton.highlighted = true