This commit is contained in:
朱子楚\zhuzi
2024-04-02 00:32:06 +08:00
parent da9f63eb24
commit 7d1666597f
6 changed files with 22 additions and 4 deletions

View File

@ -11,7 +11,7 @@ Popup {
parent: Overlay.overlay
x: Math.round((d.parentWidth - width) / 2)
y: Math.round((d.parentHeight - height) / 2)
closePolicy: Popup.CloseOnEscape
closePolicy: Popup.NoAutoClose
enter: Transition {
NumberAnimation {
property: "opacity"

View File

@ -65,7 +65,7 @@ Window {
Component.onCompleted: {
FluRouter.addWindow(window)
useSystemAppBar = FluApp.useSystemAppBar
if(useSystemAppBar && autoCenter){
if(!useSystemAppBar && autoCenter){
moveWindowToDesktopCenter()
}
fixWindowSize()

View File

@ -11,7 +11,7 @@ Popup {
parent: Overlay.overlay
x: Math.round((d.parentWidth - width) / 2)
y: Math.round((d.parentHeight - height) / 2)
closePolicy: Popup.CloseOnEscape
closePolicy: Popup.NoAutoClose
enter: Transition {
NumberAnimation {
property: "opacity"

View File

@ -64,7 +64,7 @@ Window {
Component.onCompleted: {
FluRouter.addWindow(window)
useSystemAppBar = FluApp.useSystemAppBar
if(useSystemAppBar && autoCenter){
if(!useSystemAppBar && autoCenter){
moveWindowToDesktopCenter()
}
fixWindowSize()