mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 10:55:00 +00:00
code_style: general cleanup (#1415)
* code_style: general cleanup * code_style: whitespace cleanup
This commit is contained in:
parent
35eda489be
commit
ffac71b15f
89 changed files with 161 additions and 243 deletions
|
@ -208,7 +208,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnWorktreeListPropertyChanged(object _, AvaloniaPropertyChangedEventArgs e)
|
||||
{
|
||||
if (e.Property == ListBox.ItemsSourceProperty || e.Property == ListBox.IsVisibleProperty)
|
||||
if (e.Property == ItemsControl.ItemsSourceProperty || e.Property == IsVisibleProperty)
|
||||
UpdateLeftSidebarLayout();
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ namespace SourceGit.Views
|
|||
private void UpdateLeftSidebarLayout()
|
||||
{
|
||||
var vm = DataContext as ViewModels.Repository;
|
||||
if (vm == null || vm.Settings == null)
|
||||
if (vm?.Settings == null)
|
||||
return;
|
||||
|
||||
if (!IsLoaded)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue