diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index ec976bdca..2fd8f500b 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -172,9 +172,16 @@ namespace Flow.Launcher.Plugin /// public override int GetHashCode() { - var hashcode = (Title?.GetHashCode() ?? 0) ^ - (SubTitle?.GetHashCode() ?? 0); - return hashcode; + unchecked + { + // 17 and 23 are prime numbers + int hashcode = 17; + hashcode = hashcode * 23 + (Title?.GetHashCode() ?? 0); + hashcode = hashcode * 23 + (SubTitle?.GetHashCode() ?? 0); + hashcode = hashcode * 23 + (AutoCompleteText?.GetHashCode() ?? 0); + hashcode = hashcode * 23 + (CopyText?.GetHashCode() ?? 0); + return hashcode; + } } ///