Skip to content

Commit b9b1ba9

Browse files
fix #30082: remove callLater to avoid extra delay and crash
See onHandleMenuItem in StyledMenuLoader.qml: it will delay handleMenuItem and close all submenus anyway
1 parent eec8380 commit b9b1ba9

File tree

1 file changed

+1
-2
lines changed
  • src/framework/uicomponents/qml/Muse/UiComponents/internal

1 file changed

+1
-2
lines changed

src/framework/uicomponents/qml/Muse/UiComponents/internal/StyledMenu.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ MenuView {
256256
root.subMenuLoader.hasSiblingMenus = root.hasSiblingMenus
257257

258258
root.subMenuLoader.handleMenuItem.connect(function(itemId) {
259-
Qt.callLater(root.handleMenuItem, itemId)
260-
root.subMenuLoader.close()
259+
root.handleMenuItem(itemId)
261260
})
262261

263262
root.subMenuLoader.opened.connect(function(itemId) {

0 commit comments

Comments
 (0)