From a1789d7bf82265b7416eb416b1ace2d4395d81a7 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Sat, 4 Dec 2021 18:19:09 -0500 Subject: [PATCH] Push Text path --- Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs | 4 ++-- Flow.Launcher/MainWindow.xaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs b/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs index bfff27829..64b47833d 100644 --- a/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs +++ b/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs @@ -11,7 +11,7 @@ namespace Flow.Launcher.Converters { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { - if (values.Length != 2) + if (values.Length != 3) { return string.Empty; } @@ -19,7 +19,7 @@ namespace Flow.Launcher.Converters // first prop is the current query string - var queryText = QueryText.Text; + var queryText = (string)values[2]; if (string.IsNullOrEmpty(queryText)) return string.Empty; diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index 9c74e417b..acfa96406 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -163,6 +163,7 @@ +