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:
RKrom 2012-10-13 15:14:57 +00:00
commit 048826df3d
8 changed files with 130 additions and 100 deletions

View file

@ -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() {