mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
enhance: when open sourcegit with repository from commandline disable all workspaces
This commit is contained in:
@@ -83,6 +83,9 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
ActiveWorkspace = new Workspace() { Name = "Unnamed", Color = 4278221015 };
|
||||
|
||||
foreach (var w in pref.Workspaces)
|
||||
w.IsActive = false;
|
||||
|
||||
var test = new Commands.QueryRepositoryRootPath(startupRepo).ReadToEnd();
|
||||
if (!test.IsSuccess || string.IsNullOrEmpty(test.StdOut))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user