Skip to content

Commit

Permalink
Prevent check/uncheck stratagem when hotkey is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinyfish committed Jun 24, 2024
1 parent 95d6c6b commit 205609c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void OnStratagemCheckBoxCheckedAndUnchecked(object o, RoutedEventArgs routedEven
if (!Settings.EnableHotkeyTrigger)
{
_isSettingStratagemCheckBoxChecked = true;
routedEventArgs.Handled = true;
stratagemCheckBox.IsChecked = !stratagemCheckBox.IsChecked;
_isSettingStratagemCheckBoxChecked = false;
return;
}
Expand Down

0 comments on commit 205609c

Please sign in to comment.