Skip to content

Commit f24c141

Browse files
committed
Change mode to OneWay
1 parent a1789d7 commit f24c141

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ public class QuerySuggestionBoxConverter : IMultiValueConverter
1111
{
1212
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
1313
{
14-
if (values.Length != 3)
14+
if (values.Length != 2)
1515
{
1616
return string.Empty;
1717
}
1818
var QueryText = values[0] as TextBox;
1919

2020

21-
// first prop is the current query string
22-
var queryText = (string)values[2];
21+
22+
var queryText = QueryText.Text;
2323

2424
if (string.IsNullOrEmpty(queryText))
2525
return string.Empty;

Flow.Launcher/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
Style="{DynamicResource QuerySuggestionBoxStyle}">
162162
<TextBox.Text>
163163
<MultiBinding Converter="{StaticResource QuerySuggestionBoxConverter}">
164-
<Binding ElementName="QueryTextBox" Mode="OneTime" />
164+
<Binding ElementName="QueryTextBox" Mode="OneWay" />
165165
<Binding ElementName="ResultListBox" Path="SelectedItem" />
166166
<Binding ElementName="QueryTextBox" Path="Text" />
167167
</MultiBinding>

0 commit comments

Comments
 (0)