mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -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
|
||||
{
|
||||
_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…
Add table
Add a link
Reference in a new issue