Skip to content

Commit 3cebff6

Browse files
committed
enhance: when open sourcegit with repository from commandline disable all workspaces
1 parent 6d54b43 commit 3cebff6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ViewModels/Launcher.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ public Launcher(string startupRepo)
8383
{
8484
ActiveWorkspace = new Workspace() { Name = "Unnamed", Color = 4278221015 };
8585

86+
foreach (var w in pref.Workspaces)
87+
w.IsActive = false;
88+
8689
var test = new Commands.QueryRepositoryRootPath(startupRepo).ReadToEnd();
8790
if (!test.IsSuccess || string.IsNullOrEmpty(test.StdOut))
8891
{

0 commit comments

Comments
 (0)