#4470 Hide discord panel when set to build without discord

master
Andrey Kleshchev 2025-08-06 22:34:28 +03:00 committed by Andrey Kleshchev
parent 6459a3c5aa
commit 93a66b4764
1 changed files with 2 additions and 1 deletions

View File

@ -529,7 +529,8 @@ bool LLFloaterPreference::postBuild()
}
#ifndef LL_DISCORD
getChild<LLTabContainer>("privacy_tab_container")->childDisable("privacy_preferences_discord");
LLPanel* panel = getChild<LLPanel>("privacy_preferences_discord");
getChild<LLTabContainer>("privacy_tab_container")->removeTabPanel(panel);
#endif
return true;