Fixed problem with undo and missing language key

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1896 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-05-23 04:57:19 +00:00
commit fdbd829a04

View file

@ -741,7 +741,9 @@ namespace Greenshot {
this.undoToolStripMenuItem.Enabled = canUndo;
string undoAction = "";
if (canUndo) {
undoAction = Language.GetString(surface.UndoActionKey);
if (surface.UndoActionKey != LangKey.none) {
undoAction = Language.GetString(surface.UndoActionKey);
}
}
string undoText = Language.GetFormattedString(LangKey.editor_undo, undoAction);
this.btnUndo.Text = undoText;