mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
enhance: remeber tag group and submodule group IsExpanded state.
This commit is contained in:
parent
c83d4588a1
commit
0e49ad181a
2 changed files with 24 additions and 4 deletions
|
@ -210,6 +210,20 @@ namespace SourceGit.ViewModels
|
|||
set => SetProperty(ref _searchedCommits, value);
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsTagGroupExpanded
|
||||
{
|
||||
get => _isTagGroupExpanded;
|
||||
set => SetProperty(ref _isTagGroupExpanded, value);
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsSubmoduleGroupExpanded
|
||||
{
|
||||
get => _isSubmoduleGroupExpanded;
|
||||
set => SetProperty(ref _isSubmoduleGroupExpanded, value);
|
||||
}
|
||||
|
||||
public void Open()
|
||||
{
|
||||
_watcher = new Models.Watcher(this);
|
||||
|
@ -250,6 +264,9 @@ namespace SourceGit.ViewModels
|
|||
_isSearching = false;
|
||||
_searchCommitFilter = string.Empty;
|
||||
|
||||
_isTagGroupExpanded = false;
|
||||
_isSubmoduleGroupExpanded = false;
|
||||
|
||||
_remotes.Clear();
|
||||
_branches.Clear();
|
||||
_localBranchTrees.Clear();
|
||||
|
@ -1265,6 +1282,9 @@ namespace SourceGit.ViewModels
|
|||
private string _searchCommitFilter = string.Empty;
|
||||
private List<Models.Commit> _searchedCommits = new List<Models.Commit>();
|
||||
|
||||
private bool _isTagGroupExpanded = false;
|
||||
private bool _isSubmoduleGroupExpanded = false;
|
||||
|
||||
private List<Models.Remote> _remotes = new List<Models.Remote>();
|
||||
private List<Models.Branch> _branches = new List<Models.Branch>();
|
||||
private List<Models.BranchTreeNode> _localBranchTrees = new List<Models.BranchTreeNode>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue