Skip to content

Commit

Permalink
Apply stratagem group should remove other stratagems.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinyfish committed Jun 23, 2024
1 parent 77e9b0f commit ba4d48d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,10 @@ private void SetKeyStratagemString(string value)
for (var i = 0; i < count; i++)
{
var name = names[i];
if (string.IsNullOrWhiteSpace(name))
continue;

if (!StratagemManager.TryGet(name, out var stratagem))
continue;

SetKeyStratagem(i, stratagem, false);
if (string.IsNullOrWhiteSpace(name) || !StratagemManager.TryGet(name, out var stratagem))
SetKeyStratagem(i, null, false);
else
SetKeyStratagem(i, stratagem, false);
}
}

Expand Down

0 comments on commit ba4d48d

Please sign in to comment.