diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-09-22 22:18:55 +0300 |
|---|---|---|
| committer | akleshchev <117672381+akleshchev@users.noreply.github.com> | 2023-09-25 15:07:37 +0300 |
| commit | 3ff0cd546ad8990a577b9f82cf3f73be85ed5555 (patch) | |
| tree | c56626f1e7a4abd2278c7b6b76ff46fbd58f75b6 /indra/newview/llfloaterpreference.cpp | |
| parent | 145a5ffe7f57ec87b0604c2e06104a4eb3cb8644 (diff) | |
SL-20188 Size of friend list affects time to open Preferences floater
Don't check every file when it's enough to know if there are any.
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
| -rw-r--r-- | indra/newview/llfloaterpreference.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 9ea49e935f..e48f989c52 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -471,9 +471,7 @@ BOOL LLFloaterPreference::postBuild() void LLFloaterPreference::updateDeleteTranscriptsButton() { - std::vector<std::string> list_of_transcriptions_file_names; - LLLogChat::getListOfTranscriptFiles(list_of_transcriptions_file_names); - getChild<LLButton>("delete_transcripts")->setEnabled(list_of_transcriptions_file_names.size() > 0); + getChild<LLButton>("delete_transcripts")->setEnabled(LLLogChat::transcriptFilesExist()); } void LLFloaterPreference::onDoNotDisturbResponseChanged() |
