diff --git a/CHANGELOG.md b/CHANGELOG.md index 340dedd129..66eb62136a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/GUI/Dialogs/SettingsDialog.Designer.cs b/GUI/Dialogs/SettingsDialog.Designer.cs index c262a49152..7d9573fd6b 100644 --- a/GUI/Dialogs/SettingsDialog.Designer.cs +++ b/GUI/Dialogs/SettingsDialog.Designer.cs @@ -563,6 +563,7 @@ private void InitializeComponent() this.LanguageSelectionComboBox.TabIndex = 0; this.LanguageSelectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.LanguageSelectionComboBox.SelectionChangeCommitted += new System.EventHandler(this.LanguageSelectionComboBox_SelectionChanged); + this.LanguageSelectionComboBox.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.LanguageSelectionComboBox_MouseWheel); // // RefreshOnStartupCheckbox // diff --git a/GUI/Dialogs/SettingsDialog.cs b/GUI/Dialogs/SettingsDialog.cs index b8cc04dc53..cedf3f3f0e 100644 --- a/GUI/Dialogs/SettingsDialog.cs +++ b/GUI/Dialogs/SettingsDialog.cs @@ -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();