mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: when open sourcegit with repository from commandline disable all workspaces
This commit is contained in:
parent
6d54b43ee3
commit
3cebff6722
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue