Explorar o código

InSync is the opposite of RequiresRestart...

Jakob Borg %!s(int64=11) %!d(string=hai) anos
pai
achega
30aabf1da9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmd/syncthing/gui.go

+ 1 - 1
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()
 	}