This commit is contained in:
朱子楚\zhuzi 2024-03-23 22:28:14 +08:00
parent 37101c97c5
commit e0254f2f80
2 changed files with 5 additions and 5 deletions

View File

@ -37,6 +37,6 @@ FluWindow {
var y = transientParent.y + (transientParent.height - height)/2
control.stayTop = Qt.binding(function(){return transientParent.stayTop})
control.setGeometry(x,y,width,height)
control.visible = true
control.visibility = Window.Windowed
}
}

View File

@ -26,9 +26,9 @@ FluWindow {
}
Connections{
target: control.transientParent
function onVisibleChanged(){
if(control.transientParent.visible === false){
control.visible = false
function onVisibilityChanged(){
if(control.transientParent.visibility === Window.Hidden){
control.visibility = Window.Hidden
}
}
}
@ -37,6 +37,6 @@ FluWindow {
var y = transientParent.y + (transientParent.height - height)/2
control.stayTop = Qt.binding(function(){return transientParent.stayTop})
control.setGeometry(x,y,width,height)
control.visible = true
control.visibility = Window.Windowed
}
}