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(); } }