File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ public string DefaultRemote
14
14
set ;
15
15
} = string . Empty ;
16
16
17
+ public bool IncludeUntrackedInLocalChanges
18
+ {
19
+ get ;
20
+ set ;
21
+ } = true ;
22
+
17
23
public DealWithLocalChanges DealWithLocalChangesOnCheckoutBranch
18
24
{
19
25
get ;
Original file line number Diff line number Diff line change @@ -206,11 +206,15 @@ public int StashesCount
206
206
207
207
public bool IncludeUntracked
208
208
{
209
- get => _includeUntracked ;
209
+ get => _settings . IncludeUntrackedInLocalChanges ;
210
210
set
211
211
{
212
- if ( SetProperty ( ref _includeUntracked , value ) )
212
+ if ( value != _settings . IncludeUntrackedInLocalChanges )
213
+ {
214
+ _settings . IncludeUntrackedInLocalChanges = value ;
215
+ OnPropertyChanged ( ) ;
213
216
Task . Run ( RefreshWorkingCopyChanges ) ;
217
+ }
214
218
}
215
219
}
216
220
@@ -918,7 +922,7 @@ public void RefreshSubmodules()
918
922
919
923
public void RefreshWorkingCopyChanges ( )
920
924
{
921
- var changes = new Commands . QueryLocalChanges ( _fullpath , _includeUntracked ) . Result ( ) ;
925
+ var changes = new Commands . QueryLocalChanges ( _fullpath , _settings . IncludeUntrackedInLocalChanges ) . Result ( ) ;
922
926
if ( _workingCopy == null )
923
927
return ;
924
928
@@ -2299,7 +2303,6 @@ private void AutoFetchImpl(object sender)
2299
2303
private List < Models . Submodule > _submodules = new List < Models . Submodule > ( ) ;
2300
2304
private List < Models . Submodule > _visibleSubmodules = new List < Models . Submodule > ( ) ;
2301
2305
2302
- private bool _includeUntracked = true ;
2303
2306
private Models . Commit _searchResultSelectedCommit = null ;
2304
2307
private Timer _autoFetchTimer = null ;
2305
2308
private DateTime _lastFetchTime = DateTime . MinValue ;
You can’t perform that action at this time.
0 commit comments