Skip to content

Commit b7df448

Browse files
authored
fix: last content is displayed (#999)
as title Log: as title
1 parent 06e1f5e commit b7df448

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frame/qml/PanelPopup.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ Item {
5151
if (!popupWindow)
5252
return
5353

54+
// The popup is being displayed. If you click on other plugin at this time,
55+
// the popup content of the previous plugin will be displayed first,
56+
// and the wrong popup size will cause the window size to change and flicker.
57+
if (popupWindow.visible) {
58+
popupWindow.close()
59+
popupWindow.currentItem = null
60+
}
61+
5462
readyBinding = Qt.binding(function () {
5563
return popupWindow && popupWindow.currentItem === control
5664
})

0 commit comments

Comments
 (0)