From 4c471c6bb9d93677c781631416fa3645fbb5ae65 Mon Sep 17 00:00:00 2001 From: Gadfly Date: Thu, 8 Aug 2024 10:34:30 +0800 Subject: [PATCH] fix: do NOT change parent of RepositoryNode if it exists when open it from FolderPicker --- src/Views/WelcomeToolbar.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/WelcomeToolbar.axaml.cs b/src/Views/WelcomeToolbar.axaml.cs index e0a6acfb..2f8de643 100644 --- a/src/Views/WelcomeToolbar.axaml.cs +++ b/src/Views/WelcomeToolbar.axaml.cs @@ -55,7 +55,7 @@ namespace SourceGit.Views } var normalizedPath = root.Replace("\\", "/"); - var node = ViewModels.Preference.Instance.FindOrAddNodeByRepositoryPath(normalizedPath, parent, true); + var node = ViewModels.Preference.Instance.FindOrAddNodeByRepositoryPath(normalizedPath, parent, false); var launcher = this.FindAncestorOfType()?.DataContext as ViewModels.Launcher; launcher?.OpenRepositoryInTab(node, launcher.ActivePage); }