mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Topmost option in interface
This commit is contained in:
parent
72ff6034e7
commit
c0b4c67399
2 changed files with 31 additions and 0 deletions
|
|
@ -96,6 +96,34 @@
|
|||
OnContent="{DynamicResource enable}" />
|
||||
</ui:SettingsCard>
|
||||
|
||||
<ui:SettingsCard
|
||||
Margin="0 4 0 0"
|
||||
Description="{DynamicResource autoTopmostOnOpenToolTip}"
|
||||
Header="{DynamicResource autoTopmostOnOpen}">
|
||||
<ui:SettingsCard.HeaderIcon>
|
||||
<ui:FontIcon Glyph="" />
|
||||
</ui:SettingsCard.HeaderIcon>
|
||||
|
||||
<ui:ToggleSwitch
|
||||
IsOn="{Binding Settings.AutoTopmost}"
|
||||
OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}" />
|
||||
</ui:SettingsCard>
|
||||
|
||||
<ui:SettingsCard
|
||||
Margin="0 4 0 0"
|
||||
Description="{DynamicResource showTaskbarOnInvokeToolTip}"
|
||||
Header="{DynamicResource showTaskbarOnInvoke}">
|
||||
<ui:SettingsCard.HeaderIcon>
|
||||
<ui:FontIcon Glyph="" />
|
||||
</ui:SettingsCard.HeaderIcon>
|
||||
|
||||
<ui:ToggleSwitch
|
||||
IsOn="{Binding Settings.ShowTaskbarOnInvoke}"
|
||||
OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}" />
|
||||
</ui:SettingsCard>
|
||||
|
||||
<ui:SettingsCard Margin="0 4 0 0" Header="{DynamicResource SearchWindowPosition}">
|
||||
<ui:SettingsCard.HeaderIcon>
|
||||
<ui:FontIcon Glyph="" />
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue