- don't save the transifex password to the ini (but still allow the user to enter the value manually in the ini)
This commit is contained in:
parent
57d0104c01
commit
8b1000cbfb
|
@ -2982,8 +2982,10 @@ void Renderer::renderLabel(GraphicLabel *label,const Vec4f *color) {
|
||||||
|
|
||||||
string renderTextStr = lines[i];
|
string renderTextStr = lines[i];
|
||||||
if(label->getIsPassword() == true) {
|
if(label->getIsPassword() == true) {
|
||||||
|
if(renderTextStr != "") {
|
||||||
renderTextStr = "*****";
|
renderTextStr = "*****";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(color != NULL) {
|
if(color != NULL) {
|
||||||
if(renderText3DEnabled == true) {
|
if(renderText3DEnabled == true) {
|
||||||
|
|
|
@ -648,7 +648,7 @@ MenuStateOptions::MenuStateOptions(Program *program, MainMenu *mainMenu):
|
||||||
labelTransifexPwd.setIsPassword(true);
|
labelTransifexPwd.setIsPassword(true);
|
||||||
labelTransifexPwd.setMaxEditWidth(60);
|
labelTransifexPwd.setMaxEditWidth(60);
|
||||||
labelTransifexPwd.setMaxEditRenderWidth(120);
|
labelTransifexPwd.setMaxEditRenderWidth(120);
|
||||||
labelTransifexPwd.setText(config.getString("TranslationGetURLPassword","<none>"));
|
labelTransifexPwd.setText(config.getString("TranslationGetURLPassword",""));
|
||||||
|
|
||||||
labelTransifexI18NLabel.registerGraphicComponent(containerName,"labelTransifexI18NLabel");
|
labelTransifexI18NLabel.registerGraphicComponent(containerName,"labelTransifexI18NLabel");
|
||||||
labelTransifexI18NLabel.init(buttonStartPos + 360 ,buttonRowPos - 20);
|
labelTransifexI18NLabel.init(buttonStartPos + 360 ,buttonRowPos - 20);
|
||||||
|
@ -1122,15 +1122,14 @@ void MenuStateOptions::mouseClick(int x, int y, MouseButton mouseButton){
|
||||||
|
|
||||||
bool gotDownloads = false;
|
bool gotDownloads = false;
|
||||||
string orig_txnURLUser = Config::getInstance().getString("TranslationGetURLUser");
|
string orig_txnURLUser = Config::getInstance().getString("TranslationGetURLUser");
|
||||||
string orig_txnURLPwd = Config::getInstance().getString("TranslationGetURLPassword");
|
//string orig_txnURLPwd = Config::getInstance().getString("TranslationGetURLPassword","");
|
||||||
string orig_txnURLLang = Config::getInstance().getString("TranslationGetURLLanguage");
|
string orig_txnURLLang = Config::getInstance().getString("TranslationGetURLLanguage");
|
||||||
|
|
||||||
Config::getInstance().setString("TranslationGetURLUser",labelTransifexUser.getText());
|
Config::getInstance().setString("TranslationGetURLUser",labelTransifexUser.getText());
|
||||||
Config::getInstance().setString("TranslationGetURLPassword",labelTransifexPwd.getText());
|
Config::getInstance().setString("TranslationGetURLPassword",labelTransifexPwd.getText(),true);
|
||||||
Config::getInstance().setString("TranslationGetURLLanguage",labelTransifexI18N.getText());
|
Config::getInstance().setString("TranslationGetURLLanguage",labelTransifexI18N.getText());
|
||||||
|
|
||||||
bool saveChanges = (orig_txnURLUser != labelTransifexUser.getText() ||
|
bool saveChanges = (orig_txnURLUser != labelTransifexUser.getText() ||
|
||||||
orig_txnURLPwd != labelTransifexPwd.getText() ||
|
|
||||||
orig_txnURLLang != labelTransifexI18N.getText());
|
orig_txnURLLang != labelTransifexI18N.getText());
|
||||||
|
|
||||||
string txnURL = Config::getInstance().getString("TranslationGetURL");
|
string txnURL = Config::getInstance().getString("TranslationGetURL");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user