From e9bbd61110de00d97529db25567b818f20481a25 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 10 Jan 2025 00:06:17 +0100 Subject: [PATCH] Try updating the menu after it is opened Maybe this fixed the menus being in partial state on macos --- resources/qml/MessageView.qml | 6 +++--- resources/qml/components/SpaceMenuLevel.qml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index d6c0fbcd..dd5dd77a 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -420,12 +420,12 @@ Item { else link = ""; - messageActionsCFilter.updateTarget(); - if (showAt_) popup(showAt_); else popup(); + + messageActionsCFilter.updateTarget(); } Component { @@ -659,8 +659,8 @@ Item { link = link_; eventId = eventId_; + popup(); replyContextMenuCFilter.updateTarget(); - open(); } Component.onCompleted: { diff --git a/resources/qml/components/SpaceMenuLevel.qml b/resources/qml/components/SpaceMenuLevel.qml index 6c3c0d1a..11123353 100644 --- a/resources/qml/components/SpaceMenuLevel.qml +++ b/resources/qml/components/SpaceMenuLevel.qml @@ -17,7 +17,7 @@ Menu { title: modelData != undefined ? modelData.name : qsTr("Add or remove from community") property bool loadChildren: false - onAboutToShow: { + onOpened: { loadChildren = true; menuFilter.updateTarget(); }