File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public partial class MainViewModel : BaseModel, ISavable
33
33
#region Private Fields
34
34
35
35
private bool _isQueryRunning ;
36
+ private bool _reselect = true ;
36
37
private Query _lastQuery ;
37
38
private Result lastContextMenuResult = new Result ( ) ;
38
39
private List < Result > lastContextMenuResults = new List < Result > ( ) ;
@@ -216,6 +217,15 @@ public void ReQuery()
216
217
}
217
218
}
218
219
220
+ public void ReQuery ( bool reselect )
221
+ {
222
+ if ( SelectedIsFromQueryResults ( ) )
223
+ {
224
+ _reselect = reselect ;
225
+ QueryResults ( isReQuery : true ) ;
226
+ }
227
+ }
228
+
219
229
[ RelayCommand ]
220
230
private void LoadContextMenu ( )
221
231
{
@@ -1151,7 +1161,8 @@ public void UpdateResultView(IEnumerable<ResultsForUpdate> resultsForUpdates)
1151
1161
}
1152
1162
}
1153
1163
1154
- Results . AddResults ( resultsForUpdates , token ) ;
1164
+ Results . AddResults ( resultsForUpdates , token , _reselect ) ;
1165
+ _reselect = true ;
1155
1166
}
1156
1167
1157
1168
#endregion
You can’t perform that action at this time.
0 commit comments