mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-02 08:51:12 +02:00
Update Metaverse server URL on focus change
This commit is contained in:
parent
30806ce346
commit
000166beef
1 changed files with 12 additions and 1 deletions
|
@ -407,7 +407,6 @@ Item {
|
||||||
var url = metaverseServerField.text;
|
var url = metaverseServerField.text;
|
||||||
console.log("Setting metaverse server to", url);
|
console.log("Setting metaverse server to", url);
|
||||||
Settings.setValue("private/selectedMetaverseURL", url);
|
Settings.setValue("private/selectedMetaverseURL", url);
|
||||||
//setAuthURL(url);
|
|
||||||
if(AccountServices.isLoggedIn()){
|
if(AccountServices.isLoggedIn()){
|
||||||
AccountServices.logOut();
|
AccountServices.logOut();
|
||||||
}
|
}
|
||||||
|
@ -421,6 +420,18 @@ Item {
|
||||||
root.text = "";
|
root.text = "";
|
||||||
if (focus) {
|
if (focus) {
|
||||||
root.isPassword = false;
|
root.isPassword = false;
|
||||||
|
}else{
|
||||||
|
var url = metaverseServerField.text;
|
||||||
|
if(!(url == Settings.getValue("private/selectedMetaverseURL")) && !(url == "")){
|
||||||
|
if (!isLoggingInToDomain) {
|
||||||
|
console.log("Setting metaverse server to", url);
|
||||||
|
Settings.setValue("private/selectedMetaverseURL", url);
|
||||||
|
if(AccountServices.isLoggedIn()){
|
||||||
|
AccountServices.logOut();
|
||||||
|
}
|
||||||
|
AccountServices.updateAuthURLFromMetaverseServerURL();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue