From c47d657428e3047d00a72b5d70bdb4335ac85a77 Mon Sep 17 00:00:00 2001 From: niksedk Date: Thu, 1 Sep 2022 09:06:32 +0200 Subject: [PATCH] Fix ok button text - thx domddol :) --- src/ui/Forms/DialogDoNotShowAgain.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/Forms/DialogDoNotShowAgain.cs b/src/ui/Forms/DialogDoNotShowAgain.cs index 238303205..d8f2d1994 100644 --- a/src/ui/Forms/DialogDoNotShowAgain.cs +++ b/src/ui/Forms/DialogDoNotShowAgain.cs @@ -15,8 +15,8 @@ namespace Nikse.SubtitleEdit.Forms InitializeComponent(); UiUtil.FixFonts(this); - Rectangle screenRectangle = RectangleToScreen(ClientRectangle); - int titleBarHeight = screenRectangle.Top - Top; + var screenRectangle = RectangleToScreen(ClientRectangle); + var titleBarHeight = screenRectangle.Top - Top; checkBoxDoNotDisplayAgain.Text = LanguageSettings.Current.Main.DoNotDisplayMessageAgain; @@ -24,9 +24,11 @@ namespace Nikse.SubtitleEdit.Forms labelText.Text = text; UiUtil.FixLargeFonts(this, buttonOK); - int width = Math.Max(checkBoxDoNotDisplayAgain.Width, labelText.Width); + var width = Math.Max(checkBoxDoNotDisplayAgain.Width, labelText.Width); Width = width + buttonOK.Width + 75; Height = labelText.Top + labelText.Height + buttonOK.Height + titleBarHeight + 40; + + buttonOK.Text = LanguageSettings.Current.General.Ok; } private void SpellCheckCompleted_KeyDown(object sender, KeyEventArgs e)