From 5ac7d78796d5607568a1e8aef79a269ef0b7ff11 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 18 Feb 2024 16:32:30 +0800 Subject: [PATCH] style: use monospace font for repository tree --- src/ViewModels/WorkingCopy.cs | 2 ++ src/Views/Welcome.axaml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/WorkingCopy.cs b/src/ViewModels/WorkingCopy.cs index 6fc6e39d..b9efb4f4 100644 --- a/src/ViewModels/WorkingCopy.cs +++ b/src/ViewModels/WorkingCopy.cs @@ -138,6 +138,7 @@ namespace SourceGit.ViewModels { public async void StageChanges(List changes) { if (_unstaged.Count == 0 || changes.Count == 0) return; + SetDetail(null, true); IsStaging = true; _repo.SetWatcherEnabled(false); if (changes.Count == _unstaged.Count) { @@ -157,6 +158,7 @@ namespace SourceGit.ViewModels { public async void UnstageChanges(List changes) { if (_staged.Count == 0 || changes.Count == 0) return; + SetDetail(null, false); IsUnstaging = true; _repo.SetWatcherEnabled(false); if (changes.Count == _staged.Count) { diff --git a/src/Views/Welcome.axaml b/src/Views/Welcome.axaml index 31f678b6..a4ea7774 100644 --- a/src/Views/Welcome.axaml +++ b/src/Views/Welcome.axaml @@ -133,12 +133,13 @@ HorizontalAlignment="Left" IsVisible="{Binding !IsRepository}"/> - +