diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfolderview.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/linden/indra/newview/llfolderview.cpp b/linden/indra/newview/llfolderview.cpp index 16c0aa9..ce2b2b4 100644 --- a/linden/indra/newview/llfolderview.cpp +++ b/linden/indra/newview/llfolderview.cpp | |||
@@ -2893,7 +2893,9 @@ const std::string LLFolderView::getFilterSubString(BOOL trim) | |||
2893 | void LLFolderView::filter( LLInventoryFilter& filter ) | 2893 | void LLFolderView::filter( LLInventoryFilter& filter ) |
2894 | { | 2894 | { |
2895 | LLFastTimer t2(LLFastTimer::FTM_FILTER); | 2895 | LLFastTimer t2(LLFastTimer::FTM_FILTER); |
2896 | filter.setFilterCount(llclamp(gSavedSettings.getS32("FilterItemsPerFrame"), 1, 5000)); | 2896 | static S32 *sFilterItemsPerFrame = rebind_llcontrol<S32>("FilterItemsPerFrame", &gSavedSettings, true); |
2897 | |||
2898 | filter.setFilterCount(llclamp(*sFilterItemsPerFrame, 1, 5000)); | ||
2897 | 2899 | ||
2898 | if (getCompletedFilterGeneration() < filter.getCurrentGeneration()) | 2900 | if (getCompletedFilterGeneration() < filter.getCurrentGeneration()) |
2899 | { | 2901 | { |
@@ -3264,8 +3266,10 @@ void LLFolderView::draw() | |||
3264 | setShowSingleSelection(FALSE); | 3266 | setShowSingleSelection(FALSE); |
3265 | } | 3267 | } |
3266 | 3268 | ||
3269 | static F32 *sTypeAheadTimeout = rebind_llcontrol<F32>("TypeAheadTimeout", &gSavedSettings, true); | ||
3270 | |||
3267 | 3271 | ||
3268 | if (mSearchTimer.getElapsedTimeF32() > gSavedSettings.getF32("TypeAheadTimeout") || !mSearchString.size()) | 3272 | if (mSearchTimer.getElapsedTimeF32() > *sTypeAheadTimeout || !mSearchString.size()) |
3269 | { | 3273 | { |
3270 | mSearchString.clear(); | 3274 | mSearchString.clear(); |
3271 | } | 3275 | } |
@@ -3995,8 +3999,11 @@ BOOL LLFolderView::handleUnicodeCharHere(llwchar uni_char) | |||
3995 | LLMenuGL::sMenuContainer->hideMenus(); | 3999 | LLMenuGL::sMenuContainer->hideMenus(); |
3996 | } | 4000 | } |
3997 | 4001 | ||
4002 | static F32 *sTypeAheadTimeout = rebind_llcontrol<F32>("TypeAheadTimeout", &gSavedSettings, true); | ||
4003 | |||
4004 | |||
3998 | //do text search | 4005 | //do text search |
3999 | if (mSearchTimer.getElapsedTimeF32() > gSavedSettings.getF32("TypeAheadTimeout")) | 4006 | if (mSearchTimer.getElapsedTimeF32() > *sTypeAheadTimeout) |
4000 | { | 4007 | { |
4001 | mSearchString.clear(); | 4008 | mSearchString.clear(); |
4002 | } | 4009 | } |
@@ -4340,10 +4347,10 @@ void LLFolderView::doIdle() | |||
4340 | { | 4347 | { |
4341 | LLFastTimer t2(LLFastTimer::FTM_INVENTORY); | 4348 | LLFastTimer t2(LLFastTimer::FTM_INVENTORY); |
4342 | 4349 | ||
4343 | BOOL debug_filters = gSavedSettings.getBOOL("DebugInventoryFilters"); | 4350 | static BOOL* debug_filters = rebind_llcontrol<BOOL>("DebugInventoryFilters", &gSavedSettings, true); |
4344 | if (debug_filters != getDebugFilters()) | 4351 | if (*debug_filters != getDebugFilters()) |
4345 | { | 4352 | { |
4346 | mDebugFilters = debug_filters; | 4353 | mDebugFilters = *debug_filters; |
4347 | arrangeAll(); | 4354 | arrangeAll(); |
4348 | } | 4355 | } |
4349 | 4356 | ||