@@ -140,25 +140,51 @@ public string Filter
140140 public List < Models . Change > Unstaged
141141 {
142142 get => _unstaged ;
143- private set => SetProperty ( ref _unstaged , value ) ;
143+ private set
144+ {
145+ if ( SetProperty ( ref _unstaged , value ) )
146+ OnPropertyChanged ( nameof ( UnstagedCountInfo ) ) ;
147+ }
144148 }
145149
146150 public List < Models . Change > VisibleUnstaged
147151 {
148152 get => _visibleUnstaged ;
149- private set => SetProperty ( ref _visibleUnstaged , value ) ;
153+ private set
154+ {
155+ if ( SetProperty ( ref _visibleUnstaged , value ) )
156+ OnPropertyChanged ( nameof ( UnstagedCountInfo ) ) ;
157+ }
150158 }
151159
152160 public List < Models . Change > Staged
153161 {
154162 get => _staged ;
155- private set => SetProperty ( ref _staged , value ) ;
163+ private set
164+ {
165+ if ( SetProperty ( ref _staged , value ) )
166+ OnPropertyChanged ( nameof ( StagedCountInfo ) ) ;
167+ }
156168 }
157169
158170 public List < Models . Change > VisibleStaged
159171 {
160172 get => _visibleStaged ;
161- private set => SetProperty ( ref _visibleStaged , value ) ;
173+ private set
174+ {
175+ if ( SetProperty ( ref _visibleStaged , value ) )
176+ OnPropertyChanged ( nameof ( StagedCountInfo ) ) ;
177+ }
178+ }
179+
180+ public string UnstagedCountInfo
181+ {
182+ get => string . IsNullOrEmpty ( _filter ) ? $ "({ _unstaged . Count } )" : $ "({ _visibleUnstaged . Count } /{ _unstaged . Count } )";
183+ }
184+
185+ public string StagedCountInfo
186+ {
187+ get => string . IsNullOrEmpty ( _filter ) ? $ "({ _staged . Count } )" : $ "({ _visibleStaged . Count } /{ _staged . Count } )";
162188 }
163189
164190 public ChangeSelection SelectedUnstaged
0 commit comments