1
0
Эх сурвалжийг харах

InSync is the opposite of RequiresRestart...

Jakob Borg 11 жил өмнө
parent
commit
30aabf1da9
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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()
 	}