fix(dock): fix flicker context menu

This commit is contained in:
kyle
2026-01-25 23:22:14 +11:00
parent 4aaefcf5b7
commit 32cd450fed
+5 -9
View File
@@ -27,7 +27,7 @@ PopupWindow {
property real menuContentWidth: 160
implicitWidth: menuContentWidth + (Style.marginXL)
implicitHeight: contextMenuColumn.implicitHeight + (Style.marginXL)
implicitHeight: (root.items.length * 32) + (Style.marginXL)
color: "transparent"
visible: false
@@ -256,14 +256,10 @@ PopupWindow {
toplevel = toplevelData;
initItems();
// Force a complete re-evaluation by waiting for the next frame
Qt.callLater(() => {
Qt.callLater(() => {
visible = true;
canAutoClose = false;
gracePeriodTimer.restart();
});
});
visible = true;
canAutoClose = false;
gracePeriodTimer.restart();
}
function hide() {