mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2026-01-18 00:01:13 +00:00
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:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user