mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 18:36:07 +00:00
Added workaround for window positioning in Windows
This commit is contained in:
parent
dd6e4945fd
commit
4e544ab257
|
@ -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
2
webui
|
@ -1 +1 @@
|
|||
Subproject commit 791e218154b9ed80e2363a7dfd881f8041c72112
|
||||
Subproject commit e59ff93b1d11a2c06f9b1cbb8bc88b3f479a5681
|
Loading…
Reference in a new issue