From f22ce3788da38415ebd2e35958a04799e75c8c21 Mon Sep 17 00:00:00 2001 From: Ioannis G Date: Sun, 11 Jun 2023 16:19:41 +0300 Subject: [PATCH] rename params to isReQuery for consistency --- Flow.Launcher/ViewModel/MainViewModel.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index a0c1e8479..37e993c28 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -210,7 +210,7 @@ namespace Flow.Launcher.ViewModel { if (SelectedIsFromQueryResults()) { - QueryResults(reQuery: true); + QueryResults(isReQuery: true); } } @@ -504,8 +504,8 @@ namespace Flow.Launcher.ViewModel /// but we don't want to move cursor to end when query is updated from TextBox /// /// - /// Force query even when Query Text doesn't change - public void ChangeQueryText(string queryText, bool reQuery = false) + /// Force query even when Query Text doesn't change + public void ChangeQueryText(string queryText, bool isReQuery = false) { Application.Current.Dispatcher.Invoke(() => { @@ -519,9 +519,9 @@ namespace Flow.Launcher.ViewModel QueryTextCursorMovedToEnd = false; } - else if (reQuery) + else if (isReQuery) { - Query(reQuery: true); + Query(isReQuery: true); } QueryTextCursorMovedToEnd = true; }); @@ -621,11 +621,11 @@ namespace Flow.Launcher.ViewModel #region Query - public void Query(bool reQuery = false) + public void Query(bool isReQuery = false) { if (SelectedIsFromQueryResults()) { - QueryResults(reQuery); + QueryResults(isReQuery); } else if (ContextMenuSelected()) { @@ -725,7 +725,7 @@ namespace Flow.Launcher.ViewModel private readonly IReadOnlyList _emptyResult = new List(); - private async void QueryResults(bool reQuery = false) + private async void QueryResults(bool isReQuery = false) { _updateSource?.Cancel(); @@ -757,7 +757,7 @@ namespace Flow.Launcher.ViewModel return; // Update the query's IsReQuery property to true if this is a re-query - query.IsReQuery = reQuery; + query.IsReQuery = isReQuery; // handle the exclusiveness of plugin using action keyword RemoveOldQueryResults(query);