From 9a086f1c358505f863e5a1f3f9f8938acc5ce80c Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Mon, 1 Apr 2024 23:35:36 +0800 Subject: [PATCH] RibbonWindow: Make popup close more elegent. --- lib_source/qml/RibbonWindow.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_source/qml/RibbonWindow.qml b/lib_source/qml/RibbonWindow.qml index c9a1e62..39de6cf 100644 --- a/lib_source/qml/RibbonWindow.qml +++ b/lib_source/qml/RibbonWindow.qml @@ -84,6 +84,7 @@ Window { target: window_items target_rect: Qt.rect(window_items.x + x, window_items.y + y, width, height) blur_enabled: true + onClosed: contentItem.destroy() } RibbonPopupDialog{ id: dialog @@ -130,6 +131,5 @@ Window { function close_popup() { pop.close() - pop.contentItem.destroy() } }