Skip to content

Commit d4ffa93

Browse files
committed
Modified to trigger when the value changes.
1 parent 5715dcd commit d4ffa93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
using Flow.Launcher.Infrastructure.Hotkey;
2222
using Flow.Launcher.Plugin.SharedCommands;
2323
using System.Windows.Data;
24+
using System.Diagnostics;
2425

2526
namespace Flow.Launcher
2627
{
@@ -559,8 +560,7 @@ public void InitializeColorScheme()
559560

560561
private void QueryTextBox_KeyUp(object sender, KeyEventArgs e)
561562
{
562-
BindingExpression be = QueryTextBox.GetBindingExpression(System.Windows.Controls.TextBox.TextProperty);
563-
be.UpdateSource();
563+
_viewModel.ChangeQueryText(QueryTextBox.Text);
564564
}
565565
}
566566
}

0 commit comments

Comments
 (0)