// static void LLPanelNetwork::onSocksAuthChanged(LLUICtrl* ctrl, void* data) { LLRadioGroup* radio = static_cast<LLRadioGroup*>(ctrl); LLPanelNetwork* self = static_cast<LLPanelNetwork*>(data); sSocksSettingsChanged = true; std::string selection = radio->getValue().asString(); updateProxyEnabled(self, true, selection); }
void ImpPrefsFonts::apply() { LLRadioGroup* fonts = getChild<LLRadioGroup>("fonts"); if (fonts) { std::string font_choice = fonts->getValue().asString(); if (font_choice != gSavedSettings.getString("FontChoice") && !font_choice.empty()) { gSavedSettings.setString("FontChoice", font_choice); LLNotifications::instance().add("ChangeFont"); refresh(); } } }