RibbonWindow: Make popup close more elegent.

This commit is contained in:
Mentalflow 2024-04-01 23:35:36 +08:00
parent e77fd6c161
commit 9a086f1c35
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 1 additions and 1 deletions

View File

@ -84,6 +84,7 @@ Window {
target: window_items target: window_items
target_rect: Qt.rect(window_items.x + x, window_items.y + y, width, height) target_rect: Qt.rect(window_items.x + x, window_items.y + y, width, height)
blur_enabled: true blur_enabled: true
onClosed: contentItem.destroy()
} }
RibbonPopupDialog{ RibbonPopupDialog{
id: dialog id: dialog
@ -130,6 +131,5 @@ Window {
function close_popup() function close_popup()
{ {
pop.close() pop.close()
pop.contentItem.destroy()
} }
} }