From 3cebff672290cc07a0e2ea2a88ff8c0bdc5fe089 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 10 Sep 2024 17:47:08 +0800 Subject: [PATCH] enhance: when open sourcegit with repository from commandline disable all workspaces --- src/ViewModels/Launcher.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ViewModels/Launcher.cs b/src/ViewModels/Launcher.cs index b651f5d7..25a7846b 100644 --- a/src/ViewModels/Launcher.cs +++ b/src/ViewModels/Launcher.cs @@ -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)) {