Fix some leftover menus from #1319

This commit is contained in:
q234rty 2023-02-01 02:34:26 +08:00
parent 0c3d46795b
commit fa3ea18dcd
No known key found for this signature in database
GPG key ID: D7E83C63C8CC4545
2 changed files with 9 additions and 0 deletions

View file

@ -20,6 +20,14 @@ Page {
property int avatarSize: Math.ceil(fontMetrics.lineSpacing * 1.6) property int avatarSize: Math.ceil(fontMetrics.lineSpacing * 1.6)
property bool collapsed: false property bool collapsed: false
// HACK: https://bugreports.qt.io/browse/QTBUG-83972, qtwayland cannot auto hide menu
Connections {
function onHideMenu() {
communityContextMenu.close()
}
target: MainWindow
}
ListView { ListView {
id: communitiesList id: communitiesList

View file

@ -29,6 +29,7 @@ Item {
Connections { Connections {
function onHideMenu() { function onHideMenu() {
messageContextMenu.close() messageContextMenu.close()
replyContextMenu.close()
} }
target: MainWindow target: MainWindow
} }