Bouni / kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.
MIT License
1.16k stars 105 forks source link

Hard to type in category field after searching #459

Open whmountains opened 5 months ago

whmountains commented 5 months ago

Steps to reproduce:

Expected result: I can type fluidly and the search does not re-run until I am done typing. Actual result: There is a long lag after every keystroke while the query re-runs.

Known workaround: open the dropdown and pick your desired category from the menu.

NOTE: the problem does not occur when typing in the Subcategory field. Hopefully it is an easy fix to apply debouncing to the Category field as well.

Bouni commented 3 months ago

I had the idea to add an wx.ActivityIndicator but apparently the db search itself blocks the GUI refresh, so the spinner does not spin while the search is running 😑

Maybe we can utilize a thread and events in order to populate the listview after the search is done ...