diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-28 00:51:25 +0200 |
---|---|---|
committer | akleshchev <117672381+akleshchev@users.noreply.github.com> | 2023-02-28 21:46:43 +0200 |
commit | b2a06908859caa3d816ab1791fe2062142e2ccce (patch) | |
tree | 83b6663979de588b9a611f86a9bba4f2d010f95c /indra/newview/llfloatertranslationsettings.cpp | |
parent | f7210db06ee677231b93b750c205cd0317a9901f (diff) |
SL-19209 Add default text for region field
Diffstat (limited to 'indra/newview/llfloatertranslationsettings.cpp')
-rw-r--r-- | indra/newview/llfloatertranslationsettings.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llfloatertranslationsettings.cpp b/indra/newview/llfloatertranslationsettings.cpp index c99de47da0..e14227f490 100644 --- a/indra/newview/llfloatertranslationsettings.cpp +++ b/indra/newview/llfloatertranslationsettings.cpp @@ -94,11 +94,11 @@ void LLFloaterTranslationSettings::onOpen(const LLSD& key) mTranslationServiceRadioGroup->setSelectedByValue(gSavedSettings.getString("TranslationService"), TRUE); LLSD azure_key = gSavedSettings.getLLSD("AzureTranslateAPIKey"); - if (azure_key.isMap()) + if (azure_key.isMap() && !azure_key["id"].asString().empty()) { mAzureAPIKeyEditor->setText(azure_key["id"].asString()); mAzureAPIKeyEditor->setTentative(false); - if (azure_key.has("region")) + if (azure_key.has("region") && !azure_key["region"].asString().empty()) { mAzureAPIRegionEditor->setText(azure_key["region"].asString()); mAzureAPIRegionEditor->setTentative(false); @@ -113,6 +113,7 @@ void LLFloaterTranslationSettings::onOpen(const LLSD& key) else { mAzureAPIKeyEditor->setTentative(TRUE); + mAzureAPIRegionEditor->setTentative(true); mAzureKeyVerified = FALSE; } |