From 30aabf1da9b8d25276a54e078f32bc850a0659a2 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 7 Oct 2014 11:31:19 +0200 Subject: [PATCH] InSync is the opposite of RequiresRestart... --- cmd/syncthing/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 8aaa8ba4..711f138f 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -346,7 +346,7 @@ func restPostConfig(m *model.Model, w http.ResponseWriter, r *http.Request) { // Activate and save - configInSync = config.ChangeRequiresRestart(cfg.Raw(), newCfg) + configInSync = !config.ChangeRequiresRestart(cfg.Raw(), newCfg) cfg.Replace(newCfg) cfg.Save() }