fix: 修复隐藏未开放关卡时的跨天问题

This commit is contained in:
uye
2022-09-03 00:15:47 +08:00
committed by MistEO
parent 42d5cc2d2d
commit a55b445fce

View File

@@ -434,13 +434,29 @@ namespace MeoAsstGui
if (settingsModel.HideUnavailableStage)
{
var stage1 = Stage1;
StageList = newList;
if (stage1 == null)
if (Stage1 == null)
{
Stage1 = string.Empty;
}
else
{
bool hasSavedValue = false;
foreach (var item in StageList)
{
if (item.Value == Stage1)
{
hasSavedValue = true;
break;
}
}
if (!hasSavedValue)
{
Stage1 = string.Empty;
}
}
}
else
{