mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
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:
parent
2f628b0f06
commit
635396008d
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue