Performance improvement in llfolderview.cpp
parent
b7d7201a30
commit
0387b41dfb
|
|
@ -640,7 +640,11 @@ void LLFolderView::draw()
|
|||
closeAutoOpenedFolders();
|
||||
}
|
||||
|
||||
if (mSearchTimer.getElapsedTimeF32() > LLUI::sSettingGroups["config"]->getF32("TypeAheadTimeout") || !mSearchString.size())
|
||||
// <FS:Ansariel> Performance improvement
|
||||
//if (mSearchTimer.getElapsedTimeF32() > LLUI::sSettingGroups["config"]->getF32("TypeAheadTimeout") || !mSearchString.size())
|
||||
static LLCachedControl<F32> typeAheadTimeout(*LLUI::sSettingGroups["config"], "TypeAheadTimeout");
|
||||
if (mSearchTimer.getElapsedTimeF32() > typeAheadTimeout || !mSearchString.size())
|
||||
// </FS:Ansariel>
|
||||
{
|
||||
mSearchString.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue