Library Editor: faster filtering on Windows
Preventing redraw by freezing wxDataViewTreeCtrl significantly improves the performance.
This commit is contained in:
parent
98c99ff129
commit
6b87c2d6b1
|
@ -144,6 +144,7 @@ void CMP_TREE_MODEL_ADAPTER_BASE::AddAliasList(
|
||||||
|
|
||||||
void CMP_TREE_MODEL_ADAPTER_BASE::UpdateSearchString( wxString const& aSearch )
|
void CMP_TREE_MODEL_ADAPTER_BASE::UpdateSearchString( wxString const& aSearch )
|
||||||
{
|
{
|
||||||
|
m_widget->Freeze();
|
||||||
m_tree.ResetScore();
|
m_tree.ResetScore();
|
||||||
|
|
||||||
wxStringTokenizer tokenizer( aSearch );
|
wxStringTokenizer tokenizer( aSearch );
|
||||||
|
@ -158,6 +159,7 @@ void CMP_TREE_MODEL_ADAPTER_BASE::UpdateSearchString( wxString const& aSearch )
|
||||||
|
|
||||||
filterContents();
|
filterContents();
|
||||||
ShowResults() || ShowPreselect() || ShowSingleLibrary();
|
ShowResults() || ShowPreselect() || ShowSingleLibrary();
|
||||||
|
m_widget->Thaw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue