From 18bb437da0e6310b48ea179bcdf1f9d9506d617d Mon Sep 17 00:00:00 2001 From: RKrom Date: Sun, 9 Sep 2012 10:17:42 +0000 Subject: [PATCH] Fixed design-time message displaying when not designing. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2010 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Controls/GreenshotForm.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GreenshotPlugin/Controls/GreenshotForm.cs b/GreenshotPlugin/Controls/GreenshotForm.cs index 70ab0e93c..969e4e184 100644 --- a/GreenshotPlugin/Controls/GreenshotForm.cs +++ b/GreenshotPlugin/Controls/GreenshotForm.cs @@ -346,7 +346,9 @@ namespace GreenshotPlugin.Controls { if (!string.IsNullOrEmpty(languageKey)) { if (!Language.TryGetString(languageKey, out langString)) { LOG.WarnFormat("Wrong language key '{0}' configured for control '{1}'", languageKey, applyTo.Name); - MessageBox.Show(string.Format("Wrong language key '{0}' configured for control '{1}'", languageKey, applyTo.Name)); + if (DesignMode) { + MessageBox.Show(string.Format("Wrong language key '{0}' configured for control '{1}'", languageKey, applyTo.Name)); + } return; } applyTo.Text = langString;