mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
perf: 界面初始化时不读取缓存
This commit is contained in:
@@ -50,7 +50,7 @@ namespace MaaWpfGui
|
||||
});
|
||||
}
|
||||
|
||||
private void UpdateStage(bool fromWeb)
|
||||
private void UpdateStage(bool loadApi)
|
||||
{
|
||||
var tempStage = new Dictionary<string, StageInfo>
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace MaaWpfGui
|
||||
};
|
||||
|
||||
var stageApi = "StageActivity.json";
|
||||
var activity = fromWeb ? WebService.RequestMaaApiWithCache(stageApi) : WebService.LoadApiCache(stageApi);
|
||||
var activity = loadApi ? WebService.RequestMaaApiWithCache(stageApi) : null;
|
||||
|
||||
var resourceCollection = new StageActivityInfo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user