From 5cffc597fed70412f61346a11c7607a790cae2ed Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 3 May 2020 16:21:37 +0200 Subject: [PATCH] Implemented reset settings and added missing options Tags selection not added yet --- README.md | 3 --- deemix/app/settings.py | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3e3796b..41704aa 100644 --- a/README.md +++ b/README.md @@ -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 - ? diff --git a/deemix/app/settings.py b/deemix/app/settings.py index 6a80419..e9269ff 100644 --- a/deemix/app/settings.py +++ b/deemix/app/settings.py @@ -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