mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
fix: 修复隐藏未开放关卡时的跨天问题
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user