From 4b84e9175d874cf8fa207579ea88c067362e8a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 30 Dec 2023 22:31:56 +0800 Subject: [PATCH] update --- src/Qt5/imports/FluentUI/Controls/FluWindow.qml | 10 ++++++++-- src/Qt6/imports/FluentUI/Controls/FluWindow.qml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml index 38f1676f..2ff9aa5f 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml @@ -254,8 +254,14 @@ Window { if(window.useSystemAppBar || FluTools.isWindows10OrGreater()){ return false } - if(window.visibility == Window.Maximized || window.visibility == Window.FullScreen){ - return false + if(FluTools.isMacos()){ + if(window.visibility == Window.FullScreen){ + return false + } + }else{ + if(window.visibility == Window.Maximized || window.visibility == Window.FullScreen){ + return false + } } return true } diff --git a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml index 5b4ad259..8e3630a1 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml @@ -253,8 +253,14 @@ Window { if(window.useSystemAppBar || FluTools.isWindows10OrGreater()){ return false } - if(window.visibility == Window.Maximized || window.visibility == Window.FullScreen){ - return false + if(FluTools.isMacos()){ + if(window.visibility == Window.FullScreen){ + return false + } + }else{ + if(window.visibility == Window.Maximized || window.visibility == Window.FullScreen){ + return false + } } return true }