Fix missing config handling and auto-restart after setup

This commit is contained in:
Mikhail Chusavitin committed 2026-02-04 10:19:35 +03:00
1 parent d45158b08d
commit 111f83095b
3 files changed
+17 -5

No files matched your search

+3 -2
View File
@@ -203,10 +203,11 @@ func (h *SetupHandler) SaveConnection(c *gin.Context) {
}
// Always restart to properly initialize all services with the new connection
restartRequired := h.restartSig == nil
c.JSON(http.StatusOK, gin.H{
"success": true,
"message": "Settings saved. Please restart the application to apply changes.",
"restart_required": true,
"message": "Settings saved.",
"restart_required": restartRequired,
})
// Signal restart after response is sent (if restart signal is configured)