fix: clicking Open in Browser context menu item of issue link does not work (#651)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-04 15:48:28 +08:00
parent 2f628b0f06
commit 635396008d
No known key found for this signature in database

View file

@ -190,11 +190,8 @@ namespace SourceGit.Views
open.Icon = App.CreateMenuIcon("Icons.OpenWith");
open.Click += (_, ev) =>
{
Native.OS.OpenBrowser(link);
ev.Handled = true;
var parentView = this.FindAncestorOfType<CommitBaseInfo>();
if (parentView is { DataContext: ViewModels.CommitDetail detail })
detail.NavigateTo(link);
};
var copy = new MenuItem();