Fix a bug with HotkeyControl2 not re-registering the global hotkey after pressing "Cancel"

This commit is contained in:
Yusyuriv 2024-04-21 21:21:02 +06:00
parent 20fa61dc5d
commit 8c90980b47
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0

View file

@ -127,6 +127,7 @@ namespace Flow.Launcher
switch (dialog.ResultType)
{
case HotkeyControl2Dialog.EResultType.Cancel:
SetHotkey(Hotkey);
return;
case HotkeyControl2Dialog.EResultType.Save:
SetHotkey(dialog.ResultValue);