Use Equals() for comparison

This commit is contained in:
Vic 2023-01-09 22:08:27 +08:00
parent 10fa2f7beb
commit ff79651fb2

View file

@ -54,9 +54,7 @@ namespace Flow.Launcher
specialKeyState.CtrlPressed,
key);
var hotkeyString = hotkeyModel.ToString();
if (hotkeyString == tbHotkey.Text)
if (hotkeyModel.Equals(CurrentHotkey))
{
return;
}