mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
@@ -342,6 +342,7 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
}
|
||||
|
||||
ResetFightVariables();
|
||||
ResetTaskSelection();
|
||||
RefreshCustomInfrastPlanIndexByPeriod();
|
||||
}
|
||||
|
||||
@@ -751,6 +752,20 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset unsaved task selection.
|
||||
/// </summary>
|
||||
public void ResetTaskSelection()
|
||||
{
|
||||
foreach (var item in TaskItemViewModels)
|
||||
{
|
||||
if (item.IsCheckedWithNull == null)
|
||||
{
|
||||
item.IsChecked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<bool> ConnectToEmulator()
|
||||
{
|
||||
string errMsg = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user