[RAPPS] Fixed multiple redraws of the apps list
authorAlexander Shaposhnikov <sanchaez@reactos.org>
Wed, 19 Jul 2017 11:35:46 +0000 (11:35 +0000)
committerAlexander Shaposhnikov <sanchaez@reactos.org>
Wed, 19 Jul 2017 11:35:46 +0000 (11:35 +0000)
svn path=/branches/GSoC_2017/rapps/; revision=75376

reactos/base/applications/rapps/gui.cpp

index ac7e8ae..8efd14b 100644 (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;
         }