From 70d98d5824172903b3adfc1ddaf12e0674cb3faa Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 12 Apr 2021 09:21:49 +0800 Subject: [PATCH] fix: fix open submodule by context menu --- src/UI/Dashboard.xaml.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/UI/Dashboard.xaml.cs b/src/UI/Dashboard.xaml.cs index c536c5d4..7c3b79cd 100644 --- a/src/UI/Dashboard.xaml.cs +++ b/src/UI/Dashboard.xaml.cs @@ -1014,7 +1014,7 @@ namespace SourceGit.UI { sub.Path = Path.Combine(repo.Path, path); sub.Name = Path.GetFileName(path); sub.Parent = repo; - sub.Open(); + App.Open(sub); ev.Handled = true; }; @@ -1043,7 +1043,8 @@ namespace SourceGit.UI { sub.Name = Path.GetFileName(path); sub.Parent = repo; - App.Open(sub); + App.Open(sub); + e.Handled = true; } #endregion