mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-29 11:06:14 +00:00
Implemented reset settings and added missing options
Tags selection not added yet
This commit is contained in:
parent
6b8650c9af
commit
5cffc597fe
|
@ -24,13 +24,10 @@ Library:
|
|||
- Write the API Documentation
|
||||
|
||||
WebUI:
|
||||
- Link Analyzer
|
||||
- Stylize and separate the options in the Settings tab
|
||||
- Home tab
|
||||
- Charts tab
|
||||
- Favorites / Playlists tab
|
||||
- About Section
|
||||
- Reset settings to default
|
||||
- Animations and style polishing
|
||||
- ?
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ def initSettings():
|
|||
mkdir(configFolder)
|
||||
with open(path.join(currentFolder, 'default.json'), 'r') as d:
|
||||
defaultSettings = json.load(d)
|
||||
defaultSettings['downloadLocation'] = path.join(localpaths.getHomeFolder(), 'deemix Music')
|
||||
if not path.isfile(path.join(configFolder, 'config.json')):
|
||||
with open(path.join(configFolder, 'config.json'), 'w') as f:
|
||||
json.dump(defaultSettings, f, indent=2)
|
||||
|
@ -37,6 +38,11 @@ def getSettings():
|
|||
return settings
|
||||
|
||||
|
||||
def getDefaultSettings():
|
||||
global defaultSettings
|
||||
return defaultSettings
|
||||
|
||||
|
||||
def saveSettings(newSettings):
|
||||
global settings
|
||||
settings = newSettings
|
||||
|
|
Loading…
Reference in a new issue