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:
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user