diff options
author | Bret Johnson <bret.johnson@microsoft.com> | 2022-03-01 08:30:49 +0300 |
---|---|---|
committer | Bret Johnson <bret.johnson@microsoft.com> | 2022-03-01 08:30:49 +0300 |
commit | 93992812f40cddff510f099cff0d8c1bd705ee69 (patch) | |
tree | 686b5f70e49a0c00ab83a32db1303460efa9fbc2 /Xwt.XamMac | |
parent | 3629f1d08c2b161bcf464d09eb15a5461e953cff (diff) |
Fix Cocoa link labels to properly launch the browser
Update XamMac link labels to launch the browser directly,
in the standard way we do it elsewhere in VSMac.
Fixes AB#1484767
This behavior worked before with the Gtk backend, but
I don't think it ever worked properly with the Cocoa
Diffstat (limited to 'Xwt.XamMac')
-rw-r--r-- | Xwt.XamMac/Xwt.Mac/LinkLabelBackend.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/LinkLabelBackend.cs b/Xwt.XamMac/Xwt.Mac/LinkLabelBackend.cs index 821df7cf..a75c5898 100644 --- a/Xwt.XamMac/Xwt.Mac/LinkLabelBackend.cs +++ b/Xwt.XamMac/Xwt.Mac/LinkLabelBackend.cs @@ -102,7 +102,7 @@ namespace Xwt.Mac void HandleClicked (object sender, EventArgs e) { ApplicationContext.InvokeUserCode (() => { - EventSink.OnNavigateToUrl (uri); + NSWorkspace.SharedWorkspace.OpenUrl (uri); }); } |