mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
BUG-2227: Fixed an issue where there is no value assigned to the ImgurUploadHistory in the configuration.
This commit is contained in:
parent
2e18ebc44a
commit
423633a19a
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue