diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index 720cb440b..106cd6634 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -96,6 +96,34 @@ OnContent="{DynamicResource enable}" /> + + + + + + + + + + + + + + + + diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index f0f4b257a..2584cdb88 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -10,6 +10,7 @@ using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Input; +using System.Windows.Interop; using System.Windows.Media; using System.Windows.Threading; using CommunityToolkit.Mvvm.DependencyInjection; @@ -538,6 +539,7 @@ namespace Flow.Launcher.ViewModel { _history.Add(result); lastHistoryIndex = 1; + if (Settings.AutoTopmost) _topMostRecord.AddOrUpdate(result); } } @@ -2122,6 +2124,7 @@ namespace Flow.Launcher.ViewModel { Win32Helper.SwitchToEnglishKeyboardLayout(true); } + } public async void Hide(bool reset = true)