enhance: when open sourcegit with repository from commandline disable all workspaces

This commit is contained in:
leo 2024-09-10 17:47:08 +08:00
parent 6d54b43ee3
commit 3cebff6722
No known key found for this signature in database

View file

@ -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))
{