mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 21:04:59 +00:00
enhance: prefer to use workspace's default clone dir if it is set (#1454)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
dd01c74d11
commit
71dd58a5d6
1 changed files with 3 additions and 3 deletions
|
@ -27,13 +27,13 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
ScanDirs = new List<Models.ScanDir>();
|
||||
|
||||
if (!string.IsNullOrEmpty(Preferences.Instance.GitDefaultCloneDir))
|
||||
ScanDirs.Add(new Models.ScanDir(Preferences.Instance.GitDefaultCloneDir, "Global"));
|
||||
|
||||
var workspace = Preferences.Instance.GetActiveWorkspace();
|
||||
if (!string.IsNullOrEmpty(workspace.DefaultCloneDir))
|
||||
ScanDirs.Add(new Models.ScanDir(workspace.DefaultCloneDir, "Workspace"));
|
||||
|
||||
if (!string.IsNullOrEmpty(Preferences.Instance.GitDefaultCloneDir))
|
||||
ScanDirs.Add(new Models.ScanDir(Preferences.Instance.GitDefaultCloneDir, "Global"));
|
||||
|
||||
if (ScanDirs.Count > 0)
|
||||
_selected = ScanDirs[0];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue