From 67ec700caff12eb129012fa8578163d5afce4a04 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sun, 13 Jul 2025 18:03:14 +0800 Subject: [PATCH] Use one way binding for modifiers --- Flow.Launcher/MainWindow.xaml.cs | 6 ------ Flow.Launcher/ResultListBox.xaml | 2 +- Flow.Launcher/ViewModel/ResultViewModel.cs | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 900befe72..0c8fb4d02 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -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; } }; diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index 9b5235217..e469bb63b 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -80,7 +80,7 @@ Style="{DynamicResource ItemHotkeyStyle}"> - + diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index df37fef09..c58abae28 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -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;