Skip to content

Commit 7924dcc

Browse files
Rename to camel case
1 parent dcc4840 commit 7924dcc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public partial class MainViewModel : BaseModel, ISavable
4242
private readonly FlowLauncherJsonStorage<UserSelectedRecord> _userSelectedRecordStorage;
4343
private readonly FlowLauncherJsonStorage<TopMostRecord> _topMostRecordStorage;
4444
private readonly History _history;
45-
private int lasthistoryindex = 1;
45+
private int lastHistoryIndex = 1;
4646
private readonly UserSelectedRecord _userSelectedRecord;
4747
private readonly TopMostRecord _topMostRecord;
4848

@@ -268,10 +268,10 @@ public void ReverseHistory()
268268
{
269269
if (_history.Items.Count > 0)
270270
{
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)
273273
{
274-
lasthistoryindex++;
274+
lastHistoryIndex++;
275275
}
276276
}
277277
}
@@ -281,10 +281,10 @@ public void ForwardHistory()
281281
{
282282
if (_history.Items.Count > 0)
283283
{
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)
286286
{
287-
lasthistoryindex--;
287+
lastHistoryIndex--;
288288
}
289289
}
290290
}
@@ -379,6 +379,7 @@ private async Task OpenResultAsync(string index)
379379
{
380380
_userSelectedRecord.Add(result);
381381
_history.Add(result.OriginQuery.RawQuery);
382+
382383
}
383384

384385
if (hideWindow)
@@ -427,13 +428,12 @@ private void SelectNextPage()
427428
[RelayCommand]
428429
private void SelectPrevItem()
429430
{
430-
var results = SelectedResults;
431431
if (_history.Items.Count > 0
432432
&& _queryText == String.Empty
433433
&& !HistorySelected()
434434
&& !ContextMenuSelected())
435435
{
436-
lasthistoryindex = 1;
436+
lastHistoryIndex = 1;
437437
ReverseHistory();
438438
}
439439
else
@@ -1164,7 +1164,7 @@ public void Show()
11641164

11651165
public async void Hide()
11661166
{
1167-
lasthistoryindex = 1;
1167+
lastHistoryIndex = 1;
11681168
// Trick for no delay
11691169
MainWindowOpacity = 0;
11701170
lastContextMenuResult = new Result();

0 commit comments

Comments
 (0)