From ebb49165c022add014994628312d86c51d92d33c Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Sun, 21 Apr 2024 21:26:37 +0600 Subject: [PATCH] Fix HotkeyControl2 not working in WelcomePage2 for setting the global show/hide hotkey --- Flow.Launcher/Resources/Pages/WelcomePage2.xaml.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/Resources/Pages/WelcomePage2.xaml.cs b/Flow.Launcher/Resources/Pages/WelcomePage2.xaml.cs index 861596e33..7dfb85a83 100644 --- a/Flow.Launcher/Resources/Pages/WelcomePage2.xaml.cs +++ b/Flow.Launcher/Resources/Pages/WelcomePage2.xaml.cs @@ -12,7 +12,7 @@ namespace Flow.Launcher.Resources.Pages { public partial class WelcomePage2 { - private Settings Settings { get; set; } + public Settings Settings { get; set; } protected override void OnNavigatedTo(NavigationEventArgs e) { @@ -24,5 +24,10 @@ namespace Flow.Launcher.Resources.Pages InitializeComponent(); } + [RelayCommand] + private static void SetTogglingHotkey(HotkeyModel hotkey) + { + HotKeyMapper.SetHotkey(hotkey, HotKeyMapper.OnToggleHotkey); + } } }