From 3f6ab55ae7904daabceee383bc0e1fbf065c2f32 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Wed, 11 Jan 2023 16:14:50 +0800 Subject: [PATCH] Use properties for hashcode --- Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs b/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs index 0908a404b..e1d29fb81 100644 --- a/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs +++ b/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs @@ -177,7 +177,7 @@ namespace Flow.Launcher.Infrastructure.Hotkey public override int GetHashCode() { - return this.ToString().GetHashCode(); + return HashCode.Combine(ModifierKeys, CharKey); } } }