mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Fix UI flickering under .net 4.5
1. This is part of .net 4.5 fix, check #393 to see more 2. This bug is introduced since commit df4ca3fecc9784a3b55f93806d8b2a662523056f
This commit is contained in:
@@ -48,8 +48,7 @@ namespace Wox.Plugin
|
||||
if (r != null)
|
||||
{
|
||||
var equality = string.Equals(r.Title, Title) &&
|
||||
string.Equals(r.SubTitle, SubTitle) &&
|
||||
r.Score == Score;
|
||||
string.Equals(r.SubTitle, SubTitle);
|
||||
return equality;
|
||||
}
|
||||
else
|
||||
@@ -61,8 +60,7 @@ namespace Wox.Plugin
|
||||
public override int GetHashCode()
|
||||
{
|
||||
var hashcode = (Title?.GetHashCode() ?? 0) ^
|
||||
(SubTitle?.GetHashCode() ?? 0) ^
|
||||
(Score.GetHashCode());
|
||||
(SubTitle?.GetHashCode() ?? 0) ;
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user