[RAPPS] Fixed multiple redraws of the apps list

svn path=/branches/GSoC_2017/rapps/; revision=75376
This commit is contained in:
Alexander Shaposhnikov 2017-07-19 11:35:46 +00:00
parent f07567454b
commit bbc5642138

View file

@ -555,7 +555,7 @@ public:
CMainWindow() :
m_ClientPanel(NULL),
pLink(NULL),
SearchEnabled(TRUE)
SearchEnabled(FALSE)
{
}
private:
@ -574,7 +574,7 @@ private:
szText.LoadStringW(hInst, IDS_APP_DESCRIPTION);
m_ListView->AddColumn(3, szText, 250, LVCFMT_LEFT);
UpdateApplicationsList(ENUM_ALL_COMPONENTS);
//UpdateApplicationsList(ENUM_ALL_COMPONENTS);
}
HTREEITEM AddCategory(HTREEITEM hRootItem, UINT TextIndex, UINT IconIndex)
@ -1068,7 +1068,8 @@ private:
if (wParam == SEARCH_TIMER_ID)
{
::KillTimer(hwnd, SEARCH_TIMER_ID);
UpdateApplicationsList(-1);
if(SearchEnabled)
UpdateApplicationsList(-1);
}
break;
}