Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 1f1abf2

Browse files
committed
[NuGet] Fix warning logged when clicking file license link
Clicking the View License link in the License Acceptance dialog was logging a warning about failing to start the url. The problem was that the custom url used to open the file license was being handled by the default LinkLabel implementation. Now the NavigateToUrlEventArgs is set as handled so this does not happen.
1 parent 0daf6f5 commit 1f1abf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/LicenseAcceptanceDialog.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ static void AddFileLicenseLinkLabel (LicenseFileText licenseFileText, VBox paren
210210
var licenseLabel = new LinkLabel (GettextCatalog.GetString ("View License"));
211211
licenseLabel.Uri = licenseFileText.CreateLicenseFileUri ();
212212
licenseLabel.Tag = licenseFileText;
213-
licenseLabel.NavigateToUrl += (sender, e) => ShowFileDialog ((LinkLabel)sender);
213+
licenseLabel.NavigateToUrl += (sender, e) => {
214+
e.SetHandled ();
215+
ShowFileDialog ((LinkLabel)sender);
216+
};
214217
parentVBox.PackStart (licenseLabel);
215218
}
216219

0 commit comments

Comments
 (0)