mirror of
https://github.com/greenshot/greenshot
synced 2025-08-02 13:04:03 -07:00
BUG-2542: Fix for shutdown issue (ImgurPlugin)
This commit is contained in:
parent
2386ea15aa
commit
3c965a6c3e
1 changed files with 10 additions and 4 deletions
|
@ -129,11 +129,17 @@ namespace GreenshotImgurPlugin {
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_host.GreenshotForm.BeginInvoke((MethodInvoker)delegate {
|
_host.GreenshotForm.BeginInvoke((MethodInvoker)delegate
|
||||||
if (_config.ImgurUploadHistory != null && _config.ImgurUploadHistory.Count > 0) {
|
{
|
||||||
_historyMenuItem.Enabled = true;
|
var historyMenuItem = _historyMenuItem;
|
||||||
|
if (historyMenuItem == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (_config?.ImgurUploadHistory != null && _config.ImgurUploadHistory.Count > 0) {
|
||||||
|
historyMenuItem.Enabled = true;
|
||||||
} else {
|
} else {
|
||||||
_historyMenuItem.Enabled = false;
|
historyMenuItem.Enabled = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue