mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-30 07:03:46 +08:00
fix bug #419
This commit is contained in:
parent
74c2dfed5b
commit
3933026de3
@ -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,12 +78,14 @@ Window {
|
|||||||
if(!useSystemAppBar){
|
if(!useSystemAppBar){
|
||||||
loader_frameless_helper.sourceComponent = com_frameless_helper
|
loader_frameless_helper.sourceComponent = com_frameless_helper
|
||||||
}
|
}
|
||||||
|
if(window.autoVisible){
|
||||||
if(window.autoMaximize){
|
if(window.autoMaximize){
|
||||||
window.showMaximized()
|
window.showMaximized()
|
||||||
}else{
|
}else{
|
||||||
window.show()
|
window.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Component.onDestruction: {
|
Component.onDestruction: {
|
||||||
lifecycle.onDestruction()
|
lifecycle.onDestruction()
|
||||||
}
|
}
|
||||||
|
@ -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,12 +77,14 @@ Window {
|
|||||||
if(!useSystemAppBar){
|
if(!useSystemAppBar){
|
||||||
loader_frameless_helper.sourceComponent = com_frameless_helper
|
loader_frameless_helper.sourceComponent = com_frameless_helper
|
||||||
}
|
}
|
||||||
|
if(window.autoVisible){
|
||||||
if(window.autoMaximize){
|
if(window.autoMaximize){
|
||||||
window.showMaximized()
|
window.showMaximized()
|
||||||
}else{
|
}else{
|
||||||
window.show()
|
window.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Component.onDestruction: {
|
Component.onDestruction: {
|
||||||
lifecycle.onDestruction()
|
lifecycle.onDestruction()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user