From 93992812f40cddff510f099cff0d8c1bd705ee69 Mon Sep 17 00:00:00 2001 From: Bret Johnson Date: Tue, 1 Mar 2022 00:30:49 -0500 Subject: 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 --- Xwt.XamMac/Xwt.Mac/LinkLabelBackend.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); } -- cgit v1.2.3