Add an option for checking updates

This commit is contained in:
Gang Zhuo
2015-09-21 22:42:16 -04:00
parent 204d6b856e
commit 00ccb52bef
5 changed files with 71 additions and 17 deletions
@@ -280,6 +280,12 @@ namespace Shadowsocks.Controller
}
}
public void ToggleCheckingUpdate(bool enabled)
{
_config.autoCheckUpdate = enabled;
Configuration.Save(_config);
}
protected void Reload()
{
// some logic in configuration updated the config when saving, we need to read it again