fix: fix compact message hover when a popup is opened

Fixes #2187
This commit is contained in:
Jonathan Rainville 2021-04-07 09:59:42 -04:00 committed by Iuri Matias
parent b1fbad91fe
commit a9cae5b96e
4 changed files with 9 additions and 1 deletions

View File

@ -241,7 +241,7 @@ Item {
}
HoverHandler {
enabled: !messageContextMenu.opened && !profilePopupOpened
enabled: !messageContextMenu.opened && !profilePopupOpened && !popupOpened
onHoveredChanged: {
root.isHovered = hovered;
}

View File

@ -16,6 +16,7 @@ import Qt.labs.settings 1.0
RowLayout {
id: appMain
property int currentView: sLayout.currentIndex
property bool popupOpened: false
spacing: 0
Layout.fillHeight: true
Layout.fillWidth: true

View File

@ -19,6 +19,7 @@ ApplicationWindow {
property bool hasAccounts: !!loginModel.rowCount()
property bool removeMnemonicAfterLogin: false
property alias dragAndDrop: dragTarget
property bool popupOpened: false
Universal.theme: Universal.System

View File

@ -28,6 +28,12 @@ Popup {
color: Style.current.background
radius: 8
}
onOpened: {
popupOpened = true
}
onClosed: {
popupOpened = false
}
padding: 0
contentItem: Item {