Skip to content

Commit

Permalink
Don't change language setting with scroll wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Nov 17, 2023
1 parent fe366fe commit 655427d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions GUI/Dialogs/SettingsDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions GUI/Dialogs/SettingsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,15 @@ private void HideVCheckbox_CheckedChanged(object sender, EventArgs e)
Main.Instance.configuration.HideV = HideVCheckbox.Checked;
}

private void LanguageSelectionComboBox_MouseWheel(object sender, MouseEventArgs e)
{
// Don't change values on scroll
if (e is HandledMouseEventArgs me)
{
me.Handled = true;
}
}

private void LanguageSelectionComboBox_SelectionChanged(object sender, EventArgs e)
{
config.Language = LanguageSelectionComboBox.SelectedItem.ToString();
Expand Down

0 comments on commit 655427d

Please sign in to comment.