From d4ffa93395aa2691becedfa4b2608376fc81d9b0 Mon Sep 17 00:00:00 2001 From: Sparrkle Date: Thu, 15 Sep 2022 15:25:20 +0900 Subject: [PATCH] Modified to trigger when the value changes. --- Flow.Launcher/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index a4d02fb50..20bfa0d62 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -21,6 +21,7 @@ using System.Windows.Media; using Flow.Launcher.Infrastructure.Hotkey; using Flow.Launcher.Plugin.SharedCommands; using System.Windows.Data; +using System.Diagnostics; namespace Flow.Launcher { @@ -559,8 +560,7 @@ namespace Flow.Launcher private void QueryTextBox_KeyUp(object sender, KeyEventArgs e) { - BindingExpression be = QueryTextBox.GetBindingExpression(System.Windows.Controls.TextBox.TextProperty); - be.UpdateSource(); + _viewModel.ChangeQueryText(QueryTextBox.Text); } } }