Skip to content

Commit

Permalink
Merge #3928 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 19, 2023
2 parents fe366fe + 655427d commit 3da1f04
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ All notable changes to this project will be documented in this file.
- [Core] Fix archive.org fallback URLs for versions with spaces (#3899 by: HebaruSan)
- [Multiple] Fix auto-remove during upgrade (#3913 by: HebaruSan; reviewed: techman83)
- [Build] Clean up Linux .desktop files (#3927 by: irasponsible; reviewed: HebaruSan)
- [GUI] Don't change language setting with scroll wheel (#3928 by: HebaruSan; reviewed: techman83)

### Internal

Expand Down
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 3da1f04

Please sign in to comment.