diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2019-11-12 13:53:25 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@microsoft.com> | 2019-11-12 13:53:25 +0300 |
commit | c114be322fbe66d8e459e5a412fafc6b4e3f0a1d (patch) | |
tree | d5bb7f3d8572ee83594412efae501400de1fbd44 /main/src/addins/MonoDevelop.PackageManagement | |
parent | 6d62e0d75b326002f02d92a66821724ed4a46f2d (diff) |
[NuGet] Unsubscribe UI events when disposing
Diffstat (limited to 'main/src/addins/MonoDevelop.PackageManagement')
-rw-r--r-- | main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs index a78b0b49d7..136ef23a9a 100644 --- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs +++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs @@ -98,11 +98,11 @@ namespace MonoDevelop.PackageManagement LoadViewModel (initialSearch); closeButton.Clicked += CloseButtonClicked; - this.showPrereleaseCheckBox.Clicked += ShowPrereleaseCheckBoxClicked; - this.packageSourceComboBox.SelectionChanged += PackageSourceChanged; - this.addPackagesButton.Clicked += AddPackagesButtonClicked; - this.packageSearchEntry.Changed += PackageSearchEntryChanged; - this.packageVersionComboBox.SelectionChanged += PackageVersionChanged; + showPrereleaseCheckBox.Clicked += ShowPrereleaseCheckBoxClicked; + packageSourceComboBox.SelectionChanged += PackageSourceChanged; + addPackagesButton.Clicked += AddPackagesButtonClicked; + packageSearchEntry.Changed += PackageSearchEntryChanged; + packageVersionComboBox.SelectionChanged += PackageVersionChanged; imageLoader.Loaded += ImageLoaded; browseLabel.ButtonPressed += BrowseLabelButtonPressed; @@ -122,6 +122,21 @@ namespace MonoDevelop.PackageManagement closeButton.Clicked -= CloseButtonClicked; currentPackageVersionLabel.BoundsChanged -= PackageVersionLabelBoundsChanged; + showPrereleaseCheckBox.Clicked -= ShowPrereleaseCheckBoxClicked; + packageSourceComboBox.SelectionChanged -= PackageSourceChanged; + addPackagesButton.Clicked -= AddPackagesButtonClicked; + packageSearchEntry.Changed -= PackageSearchEntryChanged; + packageVersionComboBox.SelectionChanged -= PackageVersionChanged; + + browseLabel.ButtonPressed -= BrowseLabelButtonPressed; + browseLabel.KeyPressed -= BrowseLabelKeyPressed; + installedLabel.ButtonPressed -= InstalledLabelButtonPressed; + installedLabel.KeyPressed -= InstalledLabelKeyPressed; + updatesLabel.ButtonPressed -= UpdatesLabelButtonPressed; + updatesLabel.KeyPressed -= UpdatesLabelKeyPressed; + consolidateLabel.ButtonPressed -= ConsolidateLabelButtonPressed; + consolidateLabel.KeyPressed -= ConsolidateLabelKeyPressed; + imageLoader.Loaded -= ImageLoaded; imageLoader.Dispose (); |