diff --git a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml index ed42cab0..ea29d9de 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml @@ -39,6 +39,7 @@ Window { property bool showMaximize: true property bool showStayTop: true property bool autoMaximize: false + property bool autoVisible: true property bool useSystemAppBar property color resizeBorderColor: { if(window.active){ @@ -77,10 +78,12 @@ Window { if(!useSystemAppBar){ loader_frameless_helper.sourceComponent = com_frameless_helper } - if(window.autoMaximize){ - window.showMaximized() - }else{ - window.show() + if(window.autoVisible){ + if(window.autoMaximize){ + window.showMaximized() + }else{ + window.show() + } } } Component.onDestruction: { diff --git a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml index 59fcb398..d5c672f3 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml @@ -38,6 +38,7 @@ Window { property bool showMaximize: true property bool showStayTop: true property bool autoMaximize: false + property bool autoVisible: true property bool useSystemAppBar property color resizeBorderColor: { if(window.active){ @@ -76,10 +77,12 @@ Window { if(!useSystemAppBar){ loader_frameless_helper.sourceComponent = com_frameless_helper } - if(window.autoMaximize){ - window.showMaximized() - }else{ - window.show() + if(window.autoVisible){ + if(window.autoMaximize){ + window.showMaximized() + }else{ + window.show() + } } } Component.onDestruction: {