mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
refactor: rewrite Preference.FindOrAddNodeByRepositoryPath
* prevent moving node while opening repository directly from commandline * supports to set parent node while dropping folder to initialize repository
This commit is contained in:
parent
8d726656dc
commit
faf2c39056
6 changed files with 15 additions and 12 deletions
|
@ -49,7 +49,7 @@ namespace SourceGit.ViewModels
|
|||
|
||||
var gitDir = new Commands.QueryGitDir(root).Result();
|
||||
var repo = Preference.AddRepository(root, gitDir);
|
||||
var node = Preference.FindOrAddNodeByRepositoryPath(repo.FullPath, null);
|
||||
var node = Preference.FindOrAddNodeByRepositoryPath(repo.FullPath, null, false);
|
||||
OpenRepositoryInTab(node, null);
|
||||
}
|
||||
else if (Preference.Instance.RestoreTabs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue