From f24c14183cb8f535a55f80f56549e4c3f47d4d99 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Sat, 4 Dec 2021 20:16:23 -0500 Subject: [PATCH] Change mode to OneWay --- Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs | 6 +++--- Flow.Launcher/MainWindow.xaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs b/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs index 64b47833d..e68098c49 100644 --- a/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs +++ b/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs @@ -11,15 +11,15 @@ namespace Flow.Launcher.Converters { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { - if (values.Length != 3) + if (values.Length != 2) { return string.Empty; } var QueryText = values[0] as TextBox; - // first prop is the current query string - var queryText = (string)values[2]; + + var queryText = QueryText.Text; if (string.IsNullOrEmpty(queryText)) return string.Empty; diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index acfa96406..29df0f9ae 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -161,7 +161,7 @@ Style="{DynamicResource QuerySuggestionBoxStyle}"> - +