mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: Nightly 时放宽当前版本要求
只要不是 DEBUG 版本都行
This commit is contained in:
@@ -422,7 +422,7 @@ namespace MeoAsstGui
|
||||
}
|
||||
|
||||
// 开发版不检查更新
|
||||
if (!(settings.UpdateNightly && isCVersion()) && !force && !isStableVersion())
|
||||
if (!(settings.UpdateNightly && !isDebugVersion()) && !force && !isStableVersion())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -733,14 +733,14 @@ namespace MeoAsstGui
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool isCVersion(string version = null)
|
||||
private bool isDebugVersion(string version = null)
|
||||
{
|
||||
if (version == null)
|
||||
{
|
||||
version = _curVersion;
|
||||
}
|
||||
|
||||
return version.StartsWith("c");
|
||||
return version == "DEBUG VERSION";
|
||||
}
|
||||
|
||||
private bool isStableVersion(string version = null)
|
||||
|
||||
Reference in New Issue
Block a user