Move settings menu to a tab

settings is now its own tab instead of a modal.
This commit is contained in:
Harvey Tindall
2020-09-22 20:46:48 +01:00
parent b6ceee508c
commit 2ab9b48f4b
9 changed files with 150 additions and 105 deletions
+1 -1
View File
@@ -891,7 +891,7 @@ func (app *appContext) ModifyConfig(gc *gin.Context) {
tempConfig.SaveTo(app.config_path)
app.debug.Println("Config saved")
gc.JSON(200, map[string]bool{"success": true})
if req["restart-program"].(bool) {
if req["restart-program"] != nil && req["restart-program"].(bool) {
app.info.Println("Restarting...")
err := app.Restart()
if err != nil {