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) return lifecycle.createRegister(window,path)
} }
function moveWindowToDesktopCenter(){ function moveWindowToDesktopCenter(){
window.x = (Screen.desktopAvailableWidth - window.width)/2 return framless_helper.moveWindowToDesktopCenter()
window.y = (Screen.desktopAvailableHeight - window.height)/2
} }
function onResult(data){ function onResult(data){
if(_pageRegister){ if(_pageRegister){

View File

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