From 8f3ca61b21ad2e56f4bc1d7e408a7faafbce916b Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Wed, 28 Dec 2022 01:25:07 +0800 Subject: [PATCH] Show Preview Hotkey in tooltip --- Flow.Launcher/SettingWindow.xaml | 2 +- Flow.Launcher/ViewModel/SettingWindowViewModel.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index 4a9544042..74c768d6a 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -743,7 +743,7 @@ FocusVisualMargin="5" IsOn="{Binding Settings.AlwaysPreview}" Style="{DynamicResource SideToggleSwitch}" - ToolTip="{DynamicResource AlwaysPreviewToolTip}" /> + ToolTip="{Binding AlwaysPreviewToolTip}" /> diff --git a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs index a59ec7ecc..e4a30818c 100644 --- a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs +++ b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs @@ -243,6 +243,8 @@ namespace Flow.Launcher.ViewModel public List Languages => _translater.LoadAvailableLanguages(); public IEnumerable MaxResultsRange => Enumerable.Range(2, 16); + public string AlwaysPreviewTooltip => string.Format(_translater.GetTranslation("AlwaysPreviewToolTip"), Settings.PreviewHotkey); + public string TestProxy() { var proxyServer = Settings.Proxy.Server;