Skip to content

Commit 8f3ca61

Browse files
Show Preview Hotkey in tooltip
1 parent bdbef54 commit 8f3ca61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@
743743
FocusVisualMargin="5"
744744
IsOn="{Binding Settings.AlwaysPreview}"
745745
Style="{DynamicResource SideToggleSwitch}"
746-
ToolTip="{DynamicResource AlwaysPreviewToolTip}" />
746+
ToolTip="{Binding AlwaysPreviewToolTip}" />
747747
<TextBlock Style="{StaticResource Glyph}">
748748
&#xe8a1;
749749
</TextBlock>

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ public List<string> QuerySearchPrecisionStrings
243243
public List<Language> Languages => _translater.LoadAvailableLanguages();
244244
public IEnumerable<int> MaxResultsRange => Enumerable.Range(2, 16);
245245

246+
public string AlwaysPreviewTooltip => string.Format(_translater.GetTranslation("AlwaysPreviewToolTip"), Settings.PreviewHotkey);
247+
246248
public string TestProxy()
247249
{
248250
var proxyServer = Settings.Proxy.Server;

0 commit comments

Comments
 (0)