refactor: add repository

This commit is contained in:
leo 2025-01-11 11:28:37 +08:00
parent 52fba29613
commit 275a52eb5c
No known key found for this signature in database
6 changed files with 12 additions and 13 deletions

View file

@ -129,8 +129,7 @@ namespace SourceGit.ViewModels
CallUIThread(() =>
{
var normalizedPath = path.Replace("\\", "/");
var node = Preference.Instance.FindOrAddNodeByRepositoryPath(normalizedPath, null, true);
var node = Preference.Instance.FindOrAddNodeByRepositoryPath(path, null, true);
var launcher = App.GetLauncer();
var page = null as LauncherPage;
foreach (var one in launcher.Pages)