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

Commit

Permalink
[NuGet] Fix warning logged when clicking file license link
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mrward committed Jan 23, 2020
1 parent fe8a852 commit 33b2ae8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ static void AddFileLicenseLinkLabel (LicenseFileText licenseFileText, VBox paren
var licenseLabel = new LinkLabel (GettextCatalog.GetString ("View License"));
licenseLabel.Uri = licenseFileText.CreateLicenseFileUri ();
licenseLabel.Tag = licenseFileText;
licenseLabel.NavigateToUrl += (sender, e) => ShowFileDialog ((LinkLabel)sender);
licenseLabel.NavigateToUrl += (sender, e) => {
e.SetHandled ();
ShowFileDialog ((LinkLabel)sender);
};
parentVBox.PackStart (licenseLabel);
}

Expand Down

0 comments on commit 33b2ae8

Please sign in to comment.