diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 1c4467762d5..7e444666253 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -1,4 +1,5 @@ using System; +using System.Runtime; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; @@ -161,6 +162,8 @@ public override bool Equals(object obj) var equality = string.Equals(r?.Title, Title) && string.Equals(r?.SubTitle, SubTitle) && + string.Equals(r?.AutoCompleteText, AutoCompleteText) && + string.Equals(r?.CopyText, CopyText) && string.Equals(r?.IcoPath, IcoPath) && TitleHighlightData == r.TitleHighlightData; @@ -170,9 +173,7 @@ public override bool Equals(object obj) /// public override int GetHashCode() { - var hashcode = (Title?.GetHashCode() ?? 0) ^ - (SubTitle?.GetHashCode() ?? 0); - return hashcode; + return HashCode.Combine(Title, SubTitle, AutoCompleteText, CopyText, IcoPath); } ///