From 4e544ab2574e6abf1cc1211df4af584b5f7e9777 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 3 Jun 2020 11:45:31 +0200 Subject: [PATCH] Added workaround for window positioning in Windows --- deemix_gui.py | 9 +++++++-- webui | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/deemix_gui.py b/deemix_gui.py index 36b2408..0fa28aa 100644 --- a/deemix_gui.py +++ b/deemix_gui.py @@ -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: diff --git a/webui b/webui index 791e218..e59ff93 160000 --- a/webui +++ b/webui @@ -1 +1 @@ -Subproject commit 791e218154b9ed80e2363a7dfd881f8041c72112 +Subproject commit e59ff93b1d11a2c06f9b1cbb8bc88b3f479a5681