This commit is contained in:
zhuzichu 2024-01-29 09:17:45 +08:00
parent 74c2dfed5b
commit 3933026de3
2 changed files with 14 additions and 8 deletions

View File

@ -39,6 +39,7 @@ Window {
property bool showMaximize: true property bool showMaximize: true
property bool showStayTop: true property bool showStayTop: true
property bool autoMaximize: false property bool autoMaximize: false
property bool autoVisible: true
property bool useSystemAppBar property bool useSystemAppBar
property color resizeBorderColor: { property color resizeBorderColor: {
if(window.active){ if(window.active){
@ -77,10 +78,12 @@ Window {
if(!useSystemAppBar){ if(!useSystemAppBar){
loader_frameless_helper.sourceComponent = com_frameless_helper loader_frameless_helper.sourceComponent = com_frameless_helper
} }
if(window.autoMaximize){ if(window.autoVisible){
window.showMaximized() if(window.autoMaximize){
}else{ window.showMaximized()
window.show() }else{
window.show()
}
} }
} }
Component.onDestruction: { Component.onDestruction: {

View File

@ -38,6 +38,7 @@ Window {
property bool showMaximize: true property bool showMaximize: true
property bool showStayTop: true property bool showStayTop: true
property bool autoMaximize: false property bool autoMaximize: false
property bool autoVisible: true
property bool useSystemAppBar property bool useSystemAppBar
property color resizeBorderColor: { property color resizeBorderColor: {
if(window.active){ if(window.active){
@ -76,10 +77,12 @@ Window {
if(!useSystemAppBar){ if(!useSystemAppBar){
loader_frameless_helper.sourceComponent = com_frameless_helper loader_frameless_helper.sourceComponent = com_frameless_helper
} }
if(window.autoMaximize){ if(window.autoVisible){
window.showMaximized() if(window.autoMaximize){
}else{ window.showMaximized()
window.show() }else{
window.show()
}
} }
} }
Component.onDestruction: { Component.onDestruction: {