This commit is contained in:
朱子楚\zhuzi 2023-12-02 22:48:41 +08:00
parent 9a48880e84
commit 95a6be3d28
2 changed files with 2 additions and 4 deletions

View File

@ -304,8 +304,7 @@ Window {
return lifecycle.createRegister(window,path)
}
function moveWindowToDesktopCenter(){
window.x = (Screen.desktopAvailableWidth - window.width)/2
window.y = (Screen.desktopAvailableHeight - window.height)/2
return framless_helper.moveWindowToDesktopCenter()
}
function onResult(data){
if(_pageRegister){

View File

@ -303,8 +303,7 @@ Window {
return lifecycle.createRegister(window,path)
}
function moveWindowToDesktopCenter(){
window.x = (Screen.desktopAvailableWidth - window.width)/2
window.y = (Screen.desktopAvailableHeight - window.height)/2
return framless_helper.moveWindowToDesktopCenter()
}
function onResult(data){
if(_pageRegister){