Skip to content

Commit 67ec700

Browse files
committed
Use one way binding for modifiers
1 parent b16cd14 commit 67ec700

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,6 @@ private void OnLoaded(object sender, RoutedEventArgs _)
323323
case nameof(Settings.ShowAtTopmost):
324324
Topmost = _settings.ShowAtTopmost;
325325
break;
326-
case nameof(Settings.OpenResultModifiers):
327-
if (_viewModel.QueryResultsSelected() && string.IsNullOrEmpty(_viewModel.QueryText))
328-
{
329-
_viewModel.QueryResults();
330-
}
331-
break;
332326
}
333327
};
334328

Flow.Launcher/ResultListBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
Style="{DynamicResource ItemHotkeyStyle}">
8181
<TextBlock.Text>
8282
<MultiBinding StringFormat="{}{0}+{1}">
83-
<Binding Path="OpenResultModifiers" />
83+
<Binding Mode="OneWay" Path="Settings.OpenResultModifiers" />
8484
<Binding Converter="{StaticResource ResourceKey=OrdinalConverter}" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" />
8585
</MultiBinding>
8686
</TextBlock.Text>

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ public Visibility ShowBadge
149149

150150
private bool PreviewImageAvailable => !string.IsNullOrEmpty(Result.Preview.PreviewImagePath) || Result.Preview.PreviewDelegate != null;
151151

152-
public string OpenResultModifiers => Settings.OpenResultModifiers;
153-
154152
public string ShowTitleToolTip => string.IsNullOrEmpty(Result.TitleToolTip)
155153
? Result.Title
156154
: Result.TitleToolTip;

0 commit comments

Comments
 (0)