Skip to content

Commit 4a1c585

Browse files
committed
return Task directly
1 parent 719fc99 commit 4a1c585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/HotkeyControl.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public async Task SetHotkeyAsync(HotkeyModel keyModel, bool triggerValidate = tr
101101
}
102102
}
103103

104-
public async Task SetHotkeyAsync(string keyStr, bool triggerValidate = true)
104+
public Task SetHotkeyAsync(string keyStr, bool triggerValidate = true)
105105
{
106-
await SetHotkeyAsync(new HotkeyModel(keyStr), triggerValidate);
106+
return SetHotkeyAsync(new HotkeyModel(keyStr), triggerValidate);
107107
}
108108

109109
private bool CheckHotkeyAvailability() => HotKeyMapper.CheckAvailability(CurrentHotkey);

0 commit comments

Comments
 (0)