mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -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() {
|
private void UpdateHistoryMenuItem() {
|
||||||
try {
|
if (_historyMenuItem == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
_host.GreenshotForm.BeginInvoke((MethodInvoker)delegate {
|
_host.GreenshotForm.BeginInvoke((MethodInvoker)delegate {
|
||||||
if (_config.ImgurUploadHistory.Count > 0) {
|
if (_config.ImgurUploadHistory != null && _config.ImgurUploadHistory.Count > 0) {
|
||||||
_historyMenuItem.Enabled = true;
|
_historyMenuItem.Enabled = true;
|
||||||
} else {
|
} else {
|
||||||
_historyMenuItem.Enabled = false;
|
_historyMenuItem.Enabled = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue