fix(@desktop/onboarding): make account name area clickable

Closes: #6518
This commit is contained in:
PavelS 2022-07-27 13:06:36 +03:00 committed by PavelS
parent 001748ff6d
commit 492afe6996
1 changed files with 17 additions and 0 deletions

View File

@ -158,6 +158,23 @@ Item {
color: Theme.palette.directColor1 color: Theme.palette.directColor1
} }
MouseArea {
property bool accountPopupOpened: false
anchors.fill: parent
anchors.margins: -10
hoverEnabled: true
onEntered: {
accountPopupOpened = accountsPopup.opened
}
onPressed: {
if (!accountPopupOpened) {
changeAccountBtn.clicked(mouse)
}
accountPopupOpened = accountsPopup.opened
}
}
StatusQControls.StatusFlatRoundButton { StatusQControls.StatusFlatRoundButton {
icon.name: "chevron-down" icon.name: "chevron-down"
type: StatusQControls.StatusFlatRoundButton.Type.Tertiary type: StatusQControls.StatusFlatRoundButton.Type.Tertiary