return Task directly

This commit is contained in:
Oren Nachman 2022-08-10 12:40:46 -07:00
parent 719fc99154
commit 4a1c585f17

View file

@ -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);