From 14216a4ac08643c49907f5134311484e75575ba7 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Thu, 22 Dec 2022 22:57:15 +0800 Subject: [PATCH 1/7] Remove redundant default value --- Flow.Launcher/ViewModel/MainViewModel.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 09bba6e5c..3deb15740 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -32,8 +32,6 @@ namespace Flow.Launcher.ViewModel { #region Private Fields - private const string DefaultOpenResultModifiers = "Alt"; - private bool _isQueryRunning; private Query _lastQuery; private string _queryTextBeforeLeaveResults; @@ -103,8 +101,6 @@ namespace Flow.Launcher.ViewModel RegisterViewUpdate(); RegisterResultsUpdatedEvent(); RegisterClockAndDateUpdateAsync(); - - SetOpenResultModifiers(); } private void RegisterViewUpdate() @@ -513,7 +509,7 @@ namespace Flow.Launcher.ViewModel public string PluginIconPath { get; set; } = null; - public string OpenResultCommandModifiers { get; private set; } + public string OpenResultCommandModifiers => Settings.OpenResultModifiers; public string Image => Constant.QueryTextBoxIconImagePath; @@ -876,11 +872,6 @@ namespace Flow.Launcher.ViewModel #region Hotkey - private void SetOpenResultModifiers() - { - OpenResultCommandModifiers = Settings.OpenResultModifiers ?? DefaultOpenResultModifiers; - } - public void ToggleFlowLauncher() { if (!MainWindowVisibilityStatus) From 5de74c4676f6b9c88389469fb1f4eaa4efd07f64 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 23 Dec 2022 01:08:06 +0800 Subject: [PATCH 2/7] Fix changing OpenResultModifiers in settings won't reflect to main window --- Flow.Launcher/ViewModel/MainViewModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 3deb15740..4153c02e2 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -72,6 +72,9 @@ namespace Flow.Launcher.ViewModel case nameof(Settings.AlwaysStartEn): OnPropertyChanged(nameof(StartWithEnglishMode)); break; + case nameof(Settings.OpenResultModifiers): + OnPropertyChanged(nameof(OpenResultCommandModifiers)); + break; } }; From b1eb1910444a389eb7fbc8314d99791acebc3f2b Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 23 Dec 2022 11:46:12 +0800 Subject: [PATCH 3/7] Formatting --- Flow.Launcher/MainWindow.xaml | 4 ---- Flow.Launcher/MainWindow.xaml.cs | 8 +++++++- Flow.Launcher/ViewModel/MainViewModel.cs | 20 ++++++++++++++------ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index 095382e76..36a45da74 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -86,14 +86,10 @@ Key="O" Command="{Binding LoadContextMenuCommand}" Modifiers="Ctrl" /> - - - - /// Checks if Flow Launcher should ignore any hotkeys /// @@ -939,7 +947,7 @@ namespace Flow.Launcher.ViewModel return Settings.IgnoreHotkeysOnFullscreen && WindowsInteropHelper.IsWindowFullscreen(); } - + #endregion #region Public Methods From b18f5f4c02a0024a06a4c02cd8b90d2494d2ef45 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 23 Dec 2022 11:51:34 +0800 Subject: [PATCH 4/7] remove unused using --- Flow.Launcher/ViewModel/MainViewModel.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index d4b989eea..9940ab0be 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Windows; -using System.Windows.Input; using Flow.Launcher.Core.Plugin; using Flow.Launcher.Core.Resource; using Flow.Launcher.Helper; @@ -24,7 +23,6 @@ using System.IO; using System.Collections.Specialized; using CommunityToolkit.Mvvm.Input; using System.Globalization; -using System.Windows.Threading; namespace Flow.Launcher.ViewModel { From 33615d1d46dfe9f8ecfc850db97fba4596601dee Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 23 Dec 2022 11:47:06 +0800 Subject: [PATCH 5/7] Neutralize warning --- Flow.Launcher/ViewModel/MainViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 9940ab0be..26ad89fff 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -101,7 +101,7 @@ namespace Flow.Launcher.ViewModel RegisterViewUpdate(); RegisterResultsUpdatedEvent(); - RegisterClockAndDateUpdateAsync(); + _ = RegisterClockAndDateUpdateAsync(); } private void RegisterViewUpdate() From 47d109cbe1bc1d5fdae4079b02c970e267553d77 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 23 Dec 2022 14:14:53 +0800 Subject: [PATCH 6/7] Refactor toggle game mode logic --- Flow.Launcher/Helper/HotKeyMapper.cs | 6 ++--- Flow.Launcher/MainWindow.xaml | 4 ++++ Flow.Launcher/MainWindow.xaml.cs | 28 +++++------------------- Flow.Launcher/ViewModel/MainViewModel.cs | 11 +++++++--- 4 files changed, 21 insertions(+), 28 deletions(-) diff --git a/Flow.Launcher/Helper/HotKeyMapper.cs b/Flow.Launcher/Helper/HotKeyMapper.cs index b9ac6afb3..27c044c66 100644 --- a/Flow.Launcher/Helper/HotKeyMapper.cs +++ b/Flow.Launcher/Helper/HotKeyMapper.cs @@ -1,4 +1,4 @@ -using Flow.Launcher.Infrastructure.Hotkey; +using Flow.Launcher.Infrastructure.Hotkey; using Flow.Launcher.Infrastructure.UserSettings; using System; using NHotkey; @@ -25,7 +25,7 @@ namespace Flow.Launcher.Helper internal static void OnToggleHotkey(object sender, HotkeyEventArgs args) { - if (!mainViewModel.ShouldIgnoreHotkeys() && !mainViewModel.GameModeStatus) + if (!mainViewModel.ShouldIgnoreHotkeys()) mainViewModel.ToggleFlowLauncher(); } @@ -74,7 +74,7 @@ namespace Flow.Launcher.Helper { SetHotkey(hotkey.Hotkey, (s, e) => { - if (mainViewModel.ShouldIgnoreHotkeys() || mainViewModel.GameModeStatus) + if (mainViewModel.ShouldIgnoreHotkeys()) return; mainViewModel.Show(); diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index 36a45da74..5ed9ba802 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -177,6 +177,10 @@ Command="{Binding OpenResultCommand}" CommandParameter="9" Modifiers="{Binding OpenResultCommandModifiers}" /> + diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 05e01a3f7..544958284 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -101,6 +101,7 @@ namespace Flow.Launcher // since the default main window visibility is visible // so we need set focus during startup QueryTextBox.Focus(); + _viewModel.PropertyChanged += (o, e) => { switch (e.PropertyName) @@ -169,9 +170,12 @@ namespace Flow.Launcher _viewModel.QueryTextCursorMovedToEnd = false; } break; - + case nameof(MainViewModel.GameModeStatus): + _notifyIcon.Icon = _viewModel.GameModeStatus ? Properties.Resources.gamemode : Properties.Resources.app; + break; } }; + _settings.PropertyChanged += (o, e) => { switch (e.PropertyName) @@ -286,7 +290,7 @@ namespace Flow.Launcher }; open.Click += (o, e) => _viewModel.ToggleFlowLauncher(); - gamemode.Click += (o, e) => ToggleGameMode(); + gamemode.Click += (o, e) => _viewModel.ToggleGameMode(); positionreset.Click += (o, e) => PositionReset(); settings.Click += (o, e) => App.API.OpenSettingDialog(); exit.Click += (o, e) => Close(); @@ -332,20 +336,6 @@ namespace Flow.Launcher WelcomeWindow.Show(); } - private void ToggleGameMode() - { - if (_viewModel.GameModeStatus) - { - _notifyIcon.Icon = Properties.Resources.app; - _viewModel.GameModeStatus = false; - } - else - { - _notifyIcon.Icon = Properties.Resources.gamemode; - _viewModel.GameModeStatus = true; - } - } - private async void PositionReset() { _viewModel.Show(); @@ -601,12 +591,6 @@ namespace Flow.Launcher e.Handled = true; } break; - case Key.F12: - if (specialKeyState.CtrlPressed) - { - ToggleGameMode(); - } - break; case Key.Back: if (specialKeyState.CtrlPressed) { diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 26ad89fff..c474e2a15 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -337,6 +337,12 @@ namespace Flow.Launcher.ViewModel } } + [RelayCommand] + public void ToggleGameMode() + { + GameModeStatus = !GameModeStatus; + } + #endregion #region ViewModel Properties @@ -365,7 +371,7 @@ namespace Flow.Launcher.ViewModel public ResultsViewModel History { get; private set; } - public bool GameModeStatus { get; set; } + public bool GameModeStatus { get; set; } = false; private string _queryText; public string QueryText @@ -379,7 +385,6 @@ namespace Flow.Launcher.ViewModel } } - [RelayCommand] private void IncreaseWidth() { @@ -942,7 +947,7 @@ namespace Flow.Launcher.ViewModel /// public bool ShouldIgnoreHotkeys() { - return Settings.IgnoreHotkeysOnFullscreen && WindowsInteropHelper.IsWindowFullscreen(); + return Settings.IgnoreHotkeysOnFullscreen && WindowsInteropHelper.IsWindowFullscreen() || GameModeStatus; } #endregion From ae8f2d2ee84e24f972d7d31e3f6b725324203aa3 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 25 Dec 2022 06:01:17 +1100 Subject: [PATCH 7/7] fix wrong Everything service warning displayed when not available --- Plugins/Flow.Launcher.Plugin.Explorer/Languages/da.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/es-419.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/fr.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/it.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/ja.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/nb.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/nl.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/pt-br.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/ru.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/sr.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/uk-UA.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs | 3 +++ 17 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/da.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/da.xaml index 331a21742..05e65442b 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/da.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/da.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml index 0f345f2ce..68695210b 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml index 87b897d73..2e83a86d8 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml @@ -127,7 +127,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/es-419.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/es-419.xaml index 047ecac39..3d2247ff3 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/es-419.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/es-419.xaml @@ -114,7 +114,7 @@ Advertencia: No es una opción de orden rápido, las búsquedas pueden ser lentas - Click to Launch or Install Everything + Click to launch or install Everything Instalación de Everything Instalando el servicio de Everything. Por favor, espere... Servicio de Everything instalado correctamente diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/fr.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/fr.xaml index d6ed3f049..9cf3c7eca 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/fr.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/fr.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/it.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/it.xaml index 84cd85a01..dc8e1f329 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/it.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/it.xaml @@ -114,7 +114,7 @@ Attenzione: Questa non è un'opzione di ordinamento rapido, le ricerche potrebbero essere lente - Click to Launch or Install Everything + Click to launch or install Everything Installazione di Everything Installazione di everything. Si prega di attendere... Everything è stato installato con successo diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ja.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ja.xaml index 51bdd0259..16be25bfa 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ja.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ja.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nb.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nb.xaml index 0d0786447..1a15d52c8 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nb.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nb.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nl.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nl.xaml index 05c08606c..2a1ea35d8 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nl.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/nl.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml index 6ba8b2c9d..7ff7d2bdb 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pt-br.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pt-br.xaml index 7f5253104..3db217cb0 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pt-br.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pt-br.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ru.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ru.xaml index 2afd0a8ab..28a1a7c70 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ru.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/ru.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/sr.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/sr.xaml index dc14c9b59..53cf015bb 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/sr.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/sr.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml index dd797f68a..da6c2a30d 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/uk-UA.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/uk-UA.xaml index 3f5d97e4b..2aab5994e 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/uk-UA.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/uk-UA.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything Installation Installing Everything service. Please wait... Successfully installed Everything service diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml index c125664f0..003cf42d5 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml @@ -114,7 +114,7 @@ Warning: This is not a Fast Sort option, searches may be slow - Click to Launch or Install Everything + Click to launch or install Everything Everything 安裝程序 正在安裝 Everything 服務,請稍後... 成功安裝 Everything 服務 diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs index 3634de792..93a81f947 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs @@ -110,6 +110,9 @@ namespace Flow.Launcher.Plugin.Explorer.Search if (e is OperationCanceledException) return results.ToList(); + if (e is EngineNotAvailableException) + throw; + throw new SearchException(engineName, e.Message, e); }