Change mode to OneWay

This commit is contained in:
Garulf 2021-12-04 20:16:23 -05:00
parent a1789d7bf8
commit f24c14183c
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -161,7 +161,7 @@
Style="{DynamicResource QuerySuggestionBoxStyle}">
<TextBox.Text>
<MultiBinding Converter="{StaticResource QuerySuggestionBoxConverter}">
<Binding ElementName="QueryTextBox" Mode="OneTime" />
<Binding ElementName="QueryTextBox" Mode="OneWay" />
<Binding ElementName="ResultListBox" Path="SelectedItem" />
<Binding ElementName="QueryTextBox" Path="Text" />
</MultiBinding>