mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use one way binding for modifiers
This commit is contained in:
parent
b16cd145c1
commit
67ec700caf
3 changed files with 1 additions and 9 deletions
|
|
@ -323,12 +323,6 @@ namespace Flow.Launcher
|
|||
case nameof(Settings.ShowAtTopmost):
|
||||
Topmost = _settings.ShowAtTopmost;
|
||||
break;
|
||||
case nameof(Settings.OpenResultModifiers):
|
||||
if (_viewModel.QueryResultsSelected() && string.IsNullOrEmpty(_viewModel.QueryText))
|
||||
{
|
||||
_viewModel.QueryResults();
|
||||
}
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
Style="{DynamicResource ItemHotkeyStyle}">
|
||||
<TextBlock.Text>
|
||||
<MultiBinding StringFormat="{}{0}+{1}">
|
||||
<Binding Path="OpenResultModifiers" />
|
||||
<Binding Mode="OneWay" Path="Settings.OpenResultModifiers" />
|
||||
<Binding Converter="{StaticResource ResourceKey=OrdinalConverter}" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" />
|
||||
</MultiBinding>
|
||||
</TextBlock.Text>
|
||||
|
|
|
|||
|
|
@ -149,8 +149,6 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
private bool PreviewImageAvailable => !string.IsNullOrEmpty(Result.Preview.PreviewImagePath) || Result.Preview.PreviewDelegate != null;
|
||||
|
||||
public string OpenResultModifiers => Settings.OpenResultModifiers;
|
||||
|
||||
public string ShowTitleToolTip => string.IsNullOrEmpty(Result.TitleToolTip)
|
||||
? Result.Title
|
||||
: Result.TitleToolTip;
|
||||
|
|
|
|||
Loading…
Reference in a new issue