feat: hide all popup menus when press leftbutton on somewhere else
Log: according to the bug on https://bugreports.qt.io/browse/QTBUG-83972, The menu will always stay if not click one of the item. So I try to make a hack for it, wait qt solve it someday
This commit is contained in:
parent
1d8fc18304
commit
7d95ac23ce
5 changed files with 39 additions and 0 deletions
|
|
@ -20,6 +20,15 @@ Page {
|
|||
property int avatarSize: Math.ceil(fontMetrics.lineSpacing * 2.3)
|
||||
property bool collapsed: false
|
||||
|
||||
// HACK: https://bugreports.qt.io/browse/QTBUG-83972, qtwayland cannot auto hide menu
|
||||
Connections {
|
||||
function onHideMenu() {
|
||||
userInfoMenu.close()
|
||||
roomContextMenu.close()
|
||||
}
|
||||
target: MainWindow
|
||||
}
|
||||
|
||||
Component {
|
||||
id: roomDirectoryComponent
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue