Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Johnson <bret.johnson@microsoft.com>2022-03-01 08:30:49 +0300
committerBret Johnson <bret.johnson@microsoft.com>2022-03-01 08:30:49 +0300
commit93992812f40cddff510f099cff0d8c1bd705ee69 (patch)
tree686b5f70e49a0c00ab83a32db1303460efa9fbc2
parent3629f1d08c2b161bcf464d09eb15a5461e953cff (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
-rw-r--r--Xwt.XamMac/Xwt.Mac/LinkLabelBackend.cs2
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);
});
}