mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
refactor: more efficient way to update the visibility of tab splitters
This commit is contained in:
parent
b0c14ab3e4
commit
5514c56a29
4 changed files with 29 additions and 83 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue