@@ -42,7 +42,7 @@ public partial class MainViewModel : BaseModel, ISavable
42
42
private readonly FlowLauncherJsonStorage < UserSelectedRecord > _userSelectedRecordStorage ;
43
43
private readonly FlowLauncherJsonStorage < TopMostRecord > _topMostRecordStorage ;
44
44
private readonly History _history ;
45
- private int lasthistoryindex = 1 ;
45
+ private int lastHistoryIndex = 1 ;
46
46
private readonly UserSelectedRecord _userSelectedRecord ;
47
47
private readonly TopMostRecord _topMostRecord ;
48
48
@@ -268,10 +268,10 @@ public void ReverseHistory()
268
268
{
269
269
if ( _history . Items . Count > 0 )
270
270
{
271
- ChangeQueryText ( _history . Items [ _history . Items . Count - lasthistoryindex ] . Query . ToString ( ) ) ;
272
- if ( lasthistoryindex < _history . Items . Count )
271
+ ChangeQueryText ( _history . Items [ _history . Items . Count - lastHistoryIndex ] . Query . ToString ( ) ) ;
272
+ if ( lastHistoryIndex < _history . Items . Count )
273
273
{
274
- lasthistoryindex ++ ;
274
+ lastHistoryIndex ++ ;
275
275
}
276
276
}
277
277
}
@@ -281,10 +281,10 @@ public void ForwardHistory()
281
281
{
282
282
if ( _history . Items . Count > 0 )
283
283
{
284
- ChangeQueryText ( _history . Items [ _history . Items . Count - lasthistoryindex ] . Query . ToString ( ) ) ;
285
- if ( lasthistoryindex > 1 )
284
+ ChangeQueryText ( _history . Items [ _history . Items . Count - lastHistoryIndex ] . Query . ToString ( ) ) ;
285
+ if ( lastHistoryIndex > 1 )
286
286
{
287
- lasthistoryindex -- ;
287
+ lastHistoryIndex -- ;
288
288
}
289
289
}
290
290
}
@@ -379,6 +379,7 @@ private async Task OpenResultAsync(string index)
379
379
{
380
380
_userSelectedRecord . Add ( result ) ;
381
381
_history . Add ( result . OriginQuery . RawQuery ) ;
382
+
382
383
}
383
384
384
385
if ( hideWindow )
@@ -427,13 +428,12 @@ private void SelectNextPage()
427
428
[ RelayCommand ]
428
429
private void SelectPrevItem ( )
429
430
{
430
- var results = SelectedResults ;
431
431
if ( _history . Items . Count > 0
432
432
&& _queryText == String . Empty
433
433
&& ! HistorySelected ( )
434
434
&& ! ContextMenuSelected ( ) )
435
435
{
436
- lasthistoryindex = 1 ;
436
+ lastHistoryIndex = 1 ;
437
437
ReverseHistory ( ) ;
438
438
}
439
439
else
@@ -1164,7 +1164,7 @@ public void Show()
1164
1164
1165
1165
public async void Hide ( )
1166
1166
{
1167
- lasthistoryindex = 1 ;
1167
+ lastHistoryIndex = 1 ;
1168
1168
// Trick for no delay
1169
1169
MainWindowOpacity = 0 ;
1170
1170
lastContextMenuResult = new Result ( ) ;
0 commit comments