mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
More small fixes, and some refactoring.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2140 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
e1fbc6a10e
commit
048826df3d
8 changed files with 130 additions and 100 deletions
|
@ -100,12 +100,16 @@ namespace GreenshotImgurPlugin {
|
|||
private void CheckHistory() {
|
||||
try {
|
||||
ImgurUtils.LoadHistory();
|
||||
if (config.ImgurUploadHistory.Count > 0) {
|
||||
historyMenuItem.Enabled = true;
|
||||
} else {
|
||||
historyMenuItem.Enabled = false;
|
||||
}
|
||||
} catch {};
|
||||
host.MainMenu.BeginInvoke((MethodInvoker)delegate {
|
||||
if (config.ImgurUploadHistory.Count > 0) {
|
||||
historyMenuItem.Enabled = true;
|
||||
} else {
|
||||
historyMenuItem.Enabled = false;
|
||||
}
|
||||
});
|
||||
} catch (Exception ex) {
|
||||
LOG.Error("Error loading history", ex);
|
||||
};
|
||||
}
|
||||
|
||||
public virtual void Shutdown() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue