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, specialKeyState.CtrlPressed,
key); key);
var hotkeyString = hotkeyModel.ToString(); if (hotkeyModel.Equals(CurrentHotkey))
if (hotkeyString == tbHotkey.Text)
{ {
return; return;
} }