mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change mode to OneWay
This commit is contained in:
parent
a1789d7bf8
commit
f24c14183c
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue