From f96c9386e42596fb9b7f0b2eb38b54e21a50803b Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Tue, 6 Sep 2016 06:14:57 +0200 Subject: [PATCH] Minor fix in settings window --- src/Forms/Settings.Designer.cs | 1 + src/Forms/Settings.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/Forms/Settings.Designer.cs b/src/Forms/Settings.Designer.cs index 4f4392333..56b2cec5b 100644 --- a/src/Forms/Settings.Designer.cs +++ b/src/Forms/Settings.Designer.cs @@ -531,6 +531,7 @@ 0, 0, 0}); + this.numericUpDownMaxNumberOfLines.ValueChanged += new System.EventHandler(this.numericUpDownMaxNumberOfLines_ValueChanged); // // labelMaxLines // diff --git a/src/Forms/Settings.cs b/src/Forms/Settings.cs index 2c05aafe9..7b63eb72d 100644 --- a/src/Forms/Settings.cs +++ b/src/Forms/Settings.cs @@ -2369,5 +2369,10 @@ namespace Nikse.SubtitleEdit.Forms return true; } + private void numericUpDownMaxNumberOfLines_ValueChanged(object sender, EventArgs e) + { + checkBoxSyntaxColorTextMoreThanTwoLines.Text = string.Format(Configuration.Settings.Language.Settings.SyntaxColorTextMoreThanMaxLines, numericUpDownMaxNumberOfLines.Value); + } + } }