mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
[Beamer] - Only save user-configuration when form is closing.
This commit is contained in:
parent
8d8a6158ec
commit
b186c364fe
@ -167,12 +167,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_subtitleFontName = comboBoxSubtitleFont.SelectedItem.ToString();
|
||||
_subtitleFontSize = float.Parse(comboBoxSubtitleFontSize.SelectedItem.ToString());
|
||||
_borderWidth = float.Parse(comboBoxBorderWidth.SelectedItem.ToString());
|
||||
|
||||
Configuration.Settings.SubtitleBeaming.FontName = _subtitleFontName;
|
||||
Configuration.Settings.SubtitleBeaming.FontSize = (int)_subtitleFontSize;
|
||||
Configuration.Settings.SubtitleBeaming.FontColor = _subtitleColor;
|
||||
Configuration.Settings.SubtitleBeaming.BorderColor = _borderColor;
|
||||
Configuration.Settings.SubtitleBeaming.BorderWidth = (int)_borderWidth;
|
||||
}
|
||||
|
||||
private Bitmap GenerateImageFromTextWithStyle(string text)
|
||||
@ -680,6 +674,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private void BeamerFormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Cursor.Show();
|
||||
// Save user-configurations.
|
||||
Configuration.Settings.SubtitleBeaming.FontName = _subtitleFontName;
|
||||
Configuration.Settings.SubtitleBeaming.FontSize = (int)_subtitleFontSize;
|
||||
Configuration.Settings.SubtitleBeaming.FontColor = _subtitleColor;
|
||||
Configuration.Settings.SubtitleBeaming.BorderColor = _borderColor;
|
||||
Configuration.Settings.SubtitleBeaming.BorderWidth = (int)_borderWidth;
|
||||
}
|
||||
|
||||
private void ComboBoxHAlignSelectedIndexChanged(object sender, EventArgs e)
|
||||
|
Loading…
Reference in New Issue
Block a user