1
0
mirror of https://github.com/greenshot/greenshot.git synced 2025-03-12 05:25:25 -07:00

BUG-2542: Fix for shutdown issue (ImgurPlugin)

This commit is contained in:
Krom, Robertus 2020-02-11 12:59:49 +01:00
parent 2386ea15aa
commit 3c965a6c3e

@ -129,11 +129,17 @@ namespace GreenshotImgurPlugin {
}
try
{
_host.GreenshotForm.BeginInvoke((MethodInvoker)delegate {
if (_config.ImgurUploadHistory != null && _config.ImgurUploadHistory.Count > 0) {
_historyMenuItem.Enabled = true;
_host.GreenshotForm.BeginInvoke((MethodInvoker)delegate
{
var historyMenuItem = _historyMenuItem;
if (historyMenuItem == null)
{
return;
}
if (_config?.ImgurUploadHistory != null && _config.ImgurUploadHistory.Count > 0) {
historyMenuItem.Enabled = true;
} else {
_historyMenuItem.Enabled = false;
historyMenuItem.Enabled = false;
}
});
} catch (Exception ex) {