Skip to content

Commit a1789d7

Browse files
committed
Push Text path
1 parent 64b3a62 commit a1789d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs

Lines changed: 2 additions & 2 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 != 2)
14+
if (values.Length != 3)
1515
{
1616
return string.Empty;
1717
}
1818
var QueryText = values[0] as TextBox;
1919

2020

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

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

Flow.Launcher/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
<MultiBinding Converter="{StaticResource QuerySuggestionBoxConverter}">
164164
<Binding ElementName="QueryTextBox" Mode="OneTime" />
165165
<Binding ElementName="ResultListBox" Path="SelectedItem" />
166+
<Binding ElementName="QueryTextBox" Path="Text" />
166167
</MultiBinding>
167168
</TextBox.Text>
168169
</TextBox>

0 commit comments

Comments
 (0)