Added workaround for window positioning in Windows

This commit is contained in:
RemixDev 2020-06-03 11:45:31 +02:00
parent dd6e4945fd
commit 4e544ab257
2 changed files with 8 additions and 3 deletions

View file

@ -23,8 +23,13 @@ def url_ok(url, port):
def save_position():
window = webview.windows[0]
x = window.x
y = window.y
# workaround for window position issue in windows
if sys.platform == "win32":
y = window.x
x = window.y
else:
x = window.x
y = window.y
w = window.width
h = window.height
with open(path.join(configFolder, '.UIposition'), 'w') as f:

2
webui

@ -1 +1 @@
Subproject commit 791e218154b9ed80e2363a7dfd881f8041c72112
Subproject commit e59ff93b1d11a2c06f9b1cbb8bc88b3f479a5681