From 0ca486dfa1f5474c3b1a5bf94504735ec9a4d574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sun, 24 Mar 2024 12:45:34 +0800 Subject: [PATCH] fix bug --- src/Qt5/imports/FluentUI/Controls/FluWindow.qml | 2 +- src/Qt5/imports/FluentUI/Controls/FluWindowDialog.qml | 2 +- src/Qt6/imports/FluentUI/Controls/FluWindow.qml | 2 +- src/Qt6/imports/FluentUI/Controls/FluWindowDialog.qml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml index 49d2587e..cac8cb5c 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml @@ -52,7 +52,7 @@ Window { if(autoDestory){ destoryOnClose() }else{ - visible = false + window.visibility = Window.Hidden event.accepted = false } } diff --git a/src/Qt5/imports/FluentUI/Controls/FluWindowDialog.qml b/src/Qt5/imports/FluentUI/Controls/FluWindowDialog.qml index 5ff94931..2a939130 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluWindowDialog.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluWindowDialog.qml @@ -21,7 +21,7 @@ FluWindow { } } closeListener: function(event){ - visible = false + control.visibility = Window.Hidden event.accepted = false } Connections{ diff --git a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml index 976bb74a..1e5b813f 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml @@ -51,7 +51,7 @@ Window { if(autoDestory){ destoryOnClose() }else{ - visible = false + window.visibility = Window.Hidden event.accepted = false } } diff --git a/src/Qt6/imports/FluentUI/Controls/FluWindowDialog.qml b/src/Qt6/imports/FluentUI/Controls/FluWindowDialog.qml index bd7d0904..5f522298 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluWindowDialog.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluWindowDialog.qml @@ -21,7 +21,7 @@ FluWindow { } } closeListener: function(event){ - visible = false + control.visibility = Window.Hidden event.accepted = false } Connections{