mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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
This commit is contained in:
parent
a7e358977d
commit
18bb437da0
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue