perf: 对DEBUG VERSION禁用版本更新及资源更新检查

This commit is contained in:
status102
2023-10-08 13:35:18 +08:00
parent 2d03e9ac5b
commit 80d7ee415e
2 changed files with 4 additions and 0 deletions

View File

@@ -228,7 +228,9 @@ namespace MaaWpfGui.ViewModels.UI
{
await Task.Delay(delayTime);
await _stageManager.UpdateStageWeb();
#if RELEASE
ResourceUpdater.UpdateAndToast();
#endif
UpdateDatePrompt();
UpdateStageList(false);
});

View File

@@ -400,11 +400,13 @@ namespace MaaWpfGui.ViewModels.UI
}
else
{
#if RELEASE
var ret = await CheckAndDownloadUpdate();
if (ret == CheckUpdateRetT.OK)
{
AskToRestart();
}
#endif
}
}