From fa3ea18dcd9568d1649171da2c7ce209f8bb7008 Mon Sep 17 00:00:00 2001 From: q234rty Date: Wed, 1 Feb 2023 02:34:26 +0800 Subject: [PATCH] Fix some leftover menus from #1319 --- resources/qml/CommunitiesList.qml | 8 ++++++++ resources/qml/MessageView.qml | 1 + 2 files changed, 9 insertions(+) diff --git a/resources/qml/CommunitiesList.qml b/resources/qml/CommunitiesList.qml index 1722cc85..f9cea1ef 100644 --- a/resources/qml/CommunitiesList.qml +++ b/resources/qml/CommunitiesList.qml @@ -20,6 +20,14 @@ Page { property int avatarSize: Math.ceil(fontMetrics.lineSpacing * 1.6) 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 { id: communitiesList diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index f8c65a8d..7f39791f 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -29,6 +29,7 @@ Item { Connections { function onHideMenu() { messageContextMenu.close() + replyContextMenu.close() } target: MainWindow }