From c0b4c67399d20743c4cf59202a241bce243e4dee Mon Sep 17 00:00:00 2001 From: 01Dri Date: Sat, 13 Dec 2025 22:08:54 -0300 Subject: [PATCH] Topmost option in interface --- .../Views/SettingsPaneGeneral.xaml | 28 +++++++++++++++++++ Flow.Launcher/ViewModel/MainViewModel.cs | 3 ++ 2 files changed, 31 insertions(+) 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)