Push Text path

This commit is contained in:
Garulf 2021-12-04 18:19:09 -05:00
parent 64b3a62dd9
commit a1789d7bf8
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,7 @@ namespace Flow.Launcher.Converters
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
if (values.Length != 2)
if (values.Length != 3)
{
return string.Empty;
}
@ -19,7 +19,7 @@ namespace Flow.Launcher.Converters
// first prop is the current query string
var queryText = QueryText.Text;
var queryText = (string)values[2];
if (string.IsNullOrEmpty(queryText))
return string.Empty;

View file

@ -163,6 +163,7 @@
<MultiBinding Converter="{StaticResource QuerySuggestionBoxConverter}">
<Binding ElementName="QueryTextBox" Mode="OneTime" />
<Binding ElementName="ResultListBox" Path="SelectedItem" />
<Binding ElementName="QueryTextBox" Path="Text" />
</MultiBinding>
</TextBox.Text>
</TextBox>