This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH setup] (Usability improvement) Implement half-second wait for user to finish typing before searching packages


On 02/08/2016 04:17, Ronald Ramos wrote:
@@ -397,10 +396,10 @@ ChooserPage::OnMessageCmd (int id, HWND hwndctl,
UINT code)
     {
     case IDC_CHOOSE_CLEAR_SEARCH:
       {
-    std::string value;
-    eset (GetHWND (), IDC_CHOOSE_SEARCH_EDIT, value);
-    chooser->SetPackageFilter (value);
-    chooser->refresh ();
+        std::string value;
+        eset (GetHWND (), IDC_CHOOSE_SEARCH_EDIT, value);
+        chooser->SetPackageFilter (value);
+        chooser->refresh ();

Shouldn't the timer be cancelled here, to avoid potentially doing a refresh() twice?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]