mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-01 12:26:13 +00:00
Reverted commit 9f59794c7d
This commit is contained in:
parent
dd226cfb84
commit
52856dbded
3
app.py
3
app.py
|
@ -7,7 +7,7 @@ from deemix.utils.localpaths import getConfigFolder
|
||||||
|
|
||||||
import os.path as path
|
import os.path as path
|
||||||
import json
|
import json
|
||||||
from os import remove, chmod
|
from os import remove
|
||||||
|
|
||||||
settings = {}
|
settings = {}
|
||||||
spotifyHelper = None
|
spotifyHelper = None
|
||||||
|
@ -42,7 +42,6 @@ def shutdown(interface=None):
|
||||||
'queueComplete': queueComplete,
|
'queueComplete': queueComplete,
|
||||||
'queueList': resetQueueItems(queueList, queue)
|
'queueList': resetQueueItems(queueList, queue)
|
||||||
}, f)
|
}, f)
|
||||||
chmod(path.join(configFolder, 'queue.json'), 0o770)
|
|
||||||
cancelAllDownloads(interface)
|
cancelAllDownloads(interface)
|
||||||
if interface:
|
if interface:
|
||||||
interface.send("toast", {'msg': "Server is closed."})
|
interface.send("toast", {'msg': "Server is closed."})
|
||||||
|
|
|
@ -4,7 +4,6 @@ import webview
|
||||||
from threading import Thread, Lock
|
from threading import Thread, Lock
|
||||||
import sys
|
import sys
|
||||||
import os.path as path
|
import os.path as path
|
||||||
from os import chmod
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from server import run_server
|
from server import run_server
|
||||||
from http.client import HTTPConnection
|
from http.client import HTTPConnection
|
||||||
|
@ -35,7 +34,6 @@ def save_position():
|
||||||
h = int(window.height)
|
h = int(window.height)
|
||||||
with open(path.join(configFolder, '.UIposition'), 'w') as f:
|
with open(path.join(configFolder, '.UIposition'), 'w') as f:
|
||||||
f.write("|".join([str(x),str(y),str(w),str(h)]))
|
f.write("|".join([str(x),str(y),str(w),str(h)]))
|
||||||
chmod(path.join(configFolder, '.UIposition'), 0o770)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
url = "127.0.0.1"
|
url = "127.0.0.1"
|
||||||
|
|
Loading…
Reference in a new issue