BUG-2227: Fixed an issue where there is no value assigned to the ImgurUploadHistory in the configuration.

This commit is contained in:
Krom, Robertus 2017-06-21 08:02:14 +02:00
commit 423633a19a

View file

@ -123,9 +123,14 @@ namespace GreenshotImgurPlugin {
}
private void UpdateHistoryMenuItem() {
try {
if (_historyMenuItem == null)
{
return;
}
try
{
_host.GreenshotForm.BeginInvoke((MethodInvoker)delegate {
if (_config.ImgurUploadHistory.Count > 0) {
if (_config.ImgurUploadHistory != null && _config.ImgurUploadHistory.Count > 0) {
_historyMenuItem.Enabled = true;
} else {
_historyMenuItem.Enabled = false;