mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
fix<Repository>: filter not working
This commit is contained in:
parent
5781a22b4c
commit
98e65c0f11
4 changed files with 44 additions and 10 deletions
|
@ -23,12 +23,12 @@ namespace SourceGit.ViewModels {
|
|||
|
||||
public AvaloniaList<string> Filters {
|
||||
get;
|
||||
private set;
|
||||
set;
|
||||
} = new AvaloniaList<string>();
|
||||
|
||||
public AvaloniaList<string> CommitMessages {
|
||||
get;
|
||||
private set;
|
||||
set;
|
||||
} = new AvaloniaList<string>();
|
||||
|
||||
[JsonIgnore]
|
||||
|
@ -401,6 +401,7 @@ namespace SourceGit.ViewModels {
|
|||
var remotes = new Commands.QueryRemotes(FullPath).Result();
|
||||
|
||||
var builder = new Models.BranchTreeNode.Builder();
|
||||
builder.SetFilters(Filters);
|
||||
builder.CollectExpandedNodes(_localBranchTrees, true);
|
||||
builder.CollectExpandedNodes(_remoteBranchTrees, false);
|
||||
builder.Run(branches, remotes);
|
||||
|
@ -418,6 +419,7 @@ namespace SourceGit.ViewModels {
|
|||
|
||||
public void RefreshTags() {
|
||||
var tags = new Commands.QueryTags(FullPath).Result();
|
||||
foreach (var tag in tags) tag.IsFiltered = Filters.Contains(tag.Name);
|
||||
Dispatcher.UIThread.Invoke(() => {
|
||||
Tags = tags;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue