Try updating the menu after it is opened

Maybe this fixed the menus being in partial state on macos
pull/1855/head
Nicolas Werner 3 weeks ago
parent 76f19d879e
commit e9bbd61110
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 6
      resources/qml/MessageView.qml
  2. 2
      resources/qml/components/SpaceMenuLevel.qml

@ -420,12 +420,12 @@ Item {
else else
link = ""; link = "";
messageActionsCFilter.updateTarget();
if (showAt_) if (showAt_)
popup(showAt_); popup(showAt_);
else else
popup(); popup();
messageActionsCFilter.updateTarget();
} }
Component { Component {
@ -659,8 +659,8 @@ Item {
link = link_; link = link_;
eventId = eventId_; eventId = eventId_;
popup();
replyContextMenuCFilter.updateTarget(); replyContextMenuCFilter.updateTarget();
open();
} }
Component.onCompleted: { Component.onCompleted: {

@ -17,7 +17,7 @@ Menu {
title: modelData != undefined ? modelData.name : qsTr("Add or remove from community") title: modelData != undefined ? modelData.name : qsTr("Add or remove from community")
property bool loadChildren: false property bool loadChildren: false
onAboutToShow: { onOpened: {
loadChildren = true; loadChildren = true;
menuFilter.updateTarget(); menuFilter.updateTarget();
} }

Loading…
Cancel
Save