From 5539c59233d0d38275e025d4274ca3ba6576b44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Wed, 17 May 2023 21:21:23 +0800 Subject: [PATCH] update --- example/qml/component/CustomWindow.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/example/qml/component/CustomWindow.qml b/example/qml/component/CustomWindow.qml index 6d99110..3fb97b3 100644 --- a/example/qml/component/CustomWindow.qml +++ b/example/qml/component/CustomWindow.qml @@ -12,11 +12,6 @@ FluWindow { property bool appBarVisible: true default property alias content: container.data - onFixSizeChanged: { - framless_helper.setWindowFixedSize(fixSize) - title_bar.maximizeButton.visible = !fixSize - } - FluAppBar { id: title_bar title: window.title @@ -47,6 +42,8 @@ FluWindow { setHitTestVisible(title_bar.minimizeButton()) setHitTestVisible(title_bar.maximizeButton()) setHitTestVisible(title_bar.closeButton()) + framless_helper.setWindowFixedSize(fixSize) + title_bar.maximizeButton.visible = !fixSize window.visible = true } }