mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
fix: Update unstaged filed counter when unstaged files change (#1007)
* Add missing OnPropertyChanged in Cleanup * Force unstaged count to refresh
This commit is contained in:
@@ -214,9 +214,11 @@ namespace SourceGit.ViewModels
|
||||
OnPropertyChanged(nameof(SelectedStaged));
|
||||
|
||||
_visibleUnstaged.Clear();
|
||||
_unstaged.Clear();
|
||||
OnPropertyChanged(nameof(VisibleUnstaged));
|
||||
|
||||
_unstaged.Clear();
|
||||
OnPropertyChanged(nameof(Unstaged));
|
||||
|
||||
_staged.Clear();
|
||||
OnPropertyChanged(nameof(Staged));
|
||||
|
||||
@@ -305,6 +307,7 @@ namespace SourceGit.ViewModels
|
||||
_isLoadingData = true;
|
||||
HasUnsolvedConflicts = hasConflict;
|
||||
VisibleUnstaged = visibleUnstaged;
|
||||
OnPropertyChanged(nameof(Unstaged));
|
||||
Staged = staged;
|
||||
SelectedUnstaged = selectedUnstaged;
|
||||
SelectedStaged = selectedStaged;
|
||||
|
||||
Reference in New Issue
Block a user