From 4a1c585f17f37221dc05ef4b047b13186f72396f Mon Sep 17 00:00:00 2001 From: Oren Nachman Date: Wed, 10 Aug 2022 12:40:46 -0700 Subject: [PATCH] return Task directly --- Flow.Launcher/HotkeyControl.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/HotkeyControl.xaml.cs b/Flow.Launcher/HotkeyControl.xaml.cs index 9a4e946d0..7e07695d8 100644 --- a/Flow.Launcher/HotkeyControl.xaml.cs +++ b/Flow.Launcher/HotkeyControl.xaml.cs @@ -101,9 +101,9 @@ namespace Flow.Launcher } } - public async Task SetHotkeyAsync(string keyStr, bool triggerValidate = true) + public Task SetHotkeyAsync(string keyStr, bool triggerValidate = true) { - await SetHotkeyAsync(new HotkeyModel(keyStr), triggerValidate); + return SetHotkeyAsync(new HotkeyModel(keyStr), triggerValidate); } private bool CheckHotkeyAvailability() => HotKeyMapper.CheckAvailability(CurrentHotkey);