Fix for #390 by limiting the length of the displayed title.

This commit is contained in:
Robin Krom 2022-03-22 11:32:30 +01:00
parent 60956771c8
commit 8014199bb6
No known key found for this signature in database
GPG key ID: BCC01364F1371490

View file

@ -64,7 +64,7 @@ namespace Greenshot.Editor.Destinations
return Language.GetString(LangKey.settings_destination_editor);
}
return Language.GetString(LangKey.settings_destination_editor) + " - " + editor.CaptureDetails.Title;
return Language.GetString(LangKey.settings_destination_editor) + " - " + editor.CaptureDetails.Title?.Substring(0, Math.Min(20, editor.CaptureDetails.Title.Length));
}
}