From 91d73e2aa454adc55b56b89da4b9e6f4b3227d8d Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 4 Jul 2024 19:41:38 +0800 Subject: [PATCH] fix: layout do not updated after group was collapsed --- src/Views/Repository.axaml | 2 +- src/Views/Repository.axaml.cs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index feb3881a..2db2f166 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -231,7 +231,7 @@ - + diff --git a/src/Views/Repository.axaml.cs b/src/Views/Repository.axaml.cs index 6fec9ae0..1ffe9b93 100644 --- a/src/Views/Repository.axaml.cs +++ b/src/Views/Repository.axaml.cs @@ -392,8 +392,7 @@ namespace SourceGit.Views { if (e.Property == TreeView.ItemsSourceProperty || e.Property == TreeView.IsVisibleProperty) { - if (sender is TreeView tree && tree.IsVisible) - UpdateLeftSidebarLayout(); + UpdateLeftSidebarLayout(); } } @@ -401,8 +400,7 @@ namespace SourceGit.Views { if (e.Property == DataGrid.ItemsSourceProperty || e.Property == DataGrid.IsVisibleProperty) { - if (sender is DataGrid datagrid && datagrid.IsVisible) - UpdateLeftSidebarLayout(); + UpdateLeftSidebarLayout(); } }