refactor: more efficient way to update the visibility of tab splitters

This commit is contained in:
leo 2024-06-06 18:09:35 +08:00
parent b0c14ab3e4
commit 5514c56a29
No known key found for this signature in database
GPG key ID: B528468E49CD0E58
4 changed files with 29 additions and 83 deletions

View file

@ -18,6 +18,12 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _data, value);
}
public bool IsTabSplitterVisible
{
get => _isTabSplitterVisible;
set => SetProperty(ref _isTabSplitterVisible, value);
}
public AvaloniaList<Models.Notification> Notifications
{
get;
@ -50,12 +56,11 @@ namespace SourceGit.ViewModels
public void DismissNotification(object param)
{
if (param is Models.Notification notice)
{
Notifications.Remove(notice);
}
}
private RepositoryNode _node = null;
private object _data = null;
private bool _isTabSplitterVisible = true;
}
}