Add a setting to disable version checks.
This commit is contained in:
@@ -239,7 +239,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
// Check for updates in the background
|
||||
var webServices = modData.Manifest.Get<WebServices>();
|
||||
webServices.CheckModVersion();
|
||||
if (Game.Settings.Debug.CheckVersion)
|
||||
webServices.CheckModVersion();
|
||||
|
||||
// System information opt-out prompt
|
||||
var sysInfoPrompt = widget.Get("SYSTEM_INFO_PROMPT");
|
||||
|
||||
@@ -489,6 +489,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
BindCheckboxPref(panel, "FETCH_NEWS_CHECKBOX", gs, "FetchNews");
|
||||
BindCheckboxPref(panel, "LUADEBUG_CHECKBOX", ds, "LuaDebug");
|
||||
BindCheckboxPref(panel, "SENDSYSINFO_CHECKBOX", ds, "SendSystemInformation");
|
||||
BindCheckboxPref(panel, "CHECK_VERSION_CHECKBOX", ds, "CheckVersion");
|
||||
BindCheckboxPref(panel, "REPLAY_COMMANDS_CHECKBOX", ds, "EnableDebugCommandsInReplays");
|
||||
|
||||
return () => { };
|
||||
@@ -509,6 +510,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
ds.SanityCheckUnsyncedCode = dds.SanityCheckUnsyncedCode;
|
||||
ds.BotDebug = dds.BotDebug;
|
||||
ds.LuaDebug = dds.LuaDebug;
|
||||
ds.SendSystemInformation = dds.SendSystemInformation;
|
||||
ds.CheckVersion = dds.CheckVersion;
|
||||
ds.EnableDebugCommandsInReplays = dds.EnableDebugCommandsInReplays;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user