浏览代码

InSync is the opposite of RequiresRestart...

Jakob Borg 11 年之前
父节点
当前提交
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()
 	}