mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
perf: 对DEBUG VERSION禁用版本更新及资源更新检查
This commit is contained in:
@@ -228,7 +228,9 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
{
|
||||
await Task.Delay(delayTime);
|
||||
await _stageManager.UpdateStageWeb();
|
||||
#if RELEASE
|
||||
ResourceUpdater.UpdateAndToast();
|
||||
#endif
|
||||
UpdateDatePrompt();
|
||||
UpdateStageList(false);
|
||||
});
|
||||
|
||||
@@ -400,11 +400,13 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
}
|
||||
else
|
||||
{
|
||||
#if RELEASE
|
||||
var ret = await CheckAndDownloadUpdate();
|
||||
if (ret == CheckUpdateRetT.OK)
|
||||
{
|
||||
AskToRestart();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user