Fix unwanted refresh in settings - thx Mishasama :)

Fix #7327
This commit is contained in:
niksedk 2023-09-05 06:00:37 +02:00
parent 4d5ef70b02
commit abd8ca6a96
2 changed files with 9 additions and 1 deletions

View File

@ -6564,8 +6564,8 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1092, 574);
this.Controls.Add(this.labelUpdateFileTypeAssociationsStatus);
this.Controls.Add(this.panelWaveform);
this.Controls.Add(this.panelGeneral);
this.Controls.Add(this.panelWaveform);
this.Controls.Add(this.panelShortcuts);
this.Controls.Add(this.panelVideoPlayer);
this.Controls.Add(this.panelFont);

View File

@ -2348,8 +2348,14 @@ namespace Nikse.SubtitleEdit.Forms.Options
}
}
private int _lastIndex = 0;
private void ListBoxSectionSelectedIndexChanged(object sender, EventArgs e)
{
if (_lastIndex == listBoxSection.SelectedIndex)
{
return;
}
labelStatus.Text = string.Empty;
panelGeneral.Visible = false;
@ -2417,6 +2423,8 @@ namespace Nikse.SubtitleEdit.Forms.Options
}
section.Visible = true;
_lastIndex = listBoxSection.SelectedIndex;
}
private void LoadPluginsShortcuts()