From 8de26af24607defe1a0f180a59c099750c9e36cf Mon Sep 17 00:00:00 2001 From: Colin Liu Date: Thu, 18 Feb 2016 22:53:41 +0800 Subject: [PATCH] Fix UI Flickering issue --- Wox/ViewModel/ResultItemViewModel.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Wox/ViewModel/ResultItemViewModel.cs b/Wox/ViewModel/ResultItemViewModel.cs index 32aac3c430..e7652f1752 100644 --- a/Wox/ViewModel/ResultItemViewModel.cs +++ b/Wox/ViewModel/ResultItemViewModel.cs @@ -103,6 +103,21 @@ namespace Wox.ViewModel #endregion + public override bool Equals(object obj) + { + ResultItemViewModel r = obj as ResultItemViewModel; + if (r != null) + { + var equality = string.Equals(r.Title, Title) && + string.Equals(r.SubTitle, SubTitle); + return equality; + } + else + { + return false; + } + } + public event EventHandler ResultOpened; public event EventHandler ResultActionPanelOpened;