Added settings menu to UI

Currently all setting changes require a restart to apply, so there's a
bit of commented out code that i implemented before i realized.
Still needs tooltips for each setting.
This commit is contained in:
2020-06-30 16:17:40 +01:00
parent 52a11c3905
commit eb8e04d5a2
4 changed files with 241 additions and 21 deletions

View File

@@ -344,9 +344,7 @@ def modifyConfig():
log.debug(f"{section}/{item} does not exist in config")
with open(config_path, "w") as config_file:
temp_config.write(config_file)
log.info("Config written, reloading")
config.read(config_path)
log.info("Config reloaded.")
log.info("Config written. Restart is needed to load settings.")
return resp()
@@ -363,6 +361,7 @@ def getConfig():
log.debug('Config requested')
with open(config_base_path, "r") as f:
config_base = json.load(f)
config.read(config_path)
response_config = config_base
for section in config_base:
for entry in config_base[section]: