mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
First code analysis changes, this "should" make Greenshot more stable and implement things as is supposed.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2481 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
3f4d93f2b6
commit
a394904aa3
64 changed files with 514 additions and 343 deletions
|
@ -43,6 +43,24 @@ namespace GreenshotImgurPlugin {
|
|||
private ToolStripMenuItem historyMenuItem = null;
|
||||
private ToolStripMenuItem itemPlugInConfig;
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing) {
|
||||
if (historyMenuItem != null) {
|
||||
historyMenuItem.Dispose();
|
||||
historyMenuItem = null;
|
||||
}
|
||||
if (itemPlugInConfig != null) {
|
||||
itemPlugInConfig.Dispose();
|
||||
itemPlugInConfig = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ImgurPlugin() {
|
||||
}
|
||||
|
||||
|
@ -98,7 +116,7 @@ namespace GreenshotImgurPlugin {
|
|||
return true;
|
||||
}
|
||||
|
||||
public void OnLanguageChanged() {
|
||||
public void OnLanguageChanged(object sender, EventArgs e) {
|
||||
if (itemPlugInConfig != null) {
|
||||
itemPlugInConfig.Text = Language.GetString("imgur", LangKey.configure);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue