mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
sending to tutorial if dismiss login
This commit is contained in:
parent
f62c8ae87a
commit
6822287d67
4 changed files with 6 additions and 27 deletions
|
@ -90,8 +90,7 @@ Item {
|
|||
loginButtonAtSignIn.text = "Log In";
|
||||
loginButtonAtSignIn.color = hifi.buttons.black;
|
||||
emailField.placeholderText = "Username or Email";
|
||||
// var savedUsername = Settings.getValue("wallet/savedUsername", "");
|
||||
var savedUsername = "";
|
||||
var savedUsername = Settings.getValue("wallet/savedUsername", "");
|
||||
emailField.text = savedUsername === "Unknown user" ? "" : savedUsername;
|
||||
emailField.anchors.top = loginContainer.top;
|
||||
emailField.anchors.topMargin = !root.isTablet ? 0.2 * root.height : 0.24 * root.height;
|
||||
|
@ -196,8 +195,7 @@ Item {
|
|||
width: banner.width
|
||||
height: signInBody.textFieldHeight
|
||||
font.family: signInBody.fontFamily
|
||||
// text: Settings.getValue("wallet/savedUsername", "");
|
||||
text: "";
|
||||
text: Settings.getValue("wallet/savedUsername", "");
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
|
|
|
@ -5237,27 +5237,10 @@ void Application::resumeAfterLoginDialogActionTaken() {
|
|||
}
|
||||
}
|
||||
|
||||
QVariant testProperty = property(hifi::properties::TEST);
|
||||
qDebug() << testProperty;
|
||||
if (testProperty.isValid()) {
|
||||
const auto testScript = property(hifi::properties::TEST).toUrl();
|
||||
|
||||
// Set last parameter to exit interface when the test script finishes, if so requested
|
||||
DependencyManager::get<ScriptEngines>()->loadScript(testScript, false, false, false, false, quitWhenFinished);
|
||||
|
||||
// This is done so we don't get a "connection time-out" message when we haven't passed in a URL.
|
||||
if (arguments().contains("--url")) {
|
||||
auto reply = SandboxUtils::getStatus();
|
||||
connect(reply, &QNetworkReply::finished, this, [this, reply] {
|
||||
handleSandboxStatus(reply);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
PROFILE_RANGE(render, "GetSandboxStatus");
|
||||
auto reply = SandboxUtils::getStatus();
|
||||
connect(reply, &QNetworkReply::finished, this, [this, reply] {
|
||||
handleSandboxStatus(reply);
|
||||
});
|
||||
auto accountManager = DependencyManager::get<AccountManager>();
|
||||
auto addressManager = DependencyManager::get<AddressManager>();
|
||||
if (!accountManager->isLoggedIn()) {
|
||||
addressManager->goToEntry();
|
||||
}
|
||||
|
||||
const auto& nodeList = DependencyManager::get<NodeList>();
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
const QString DEFAULT_HIFI_ADDRESS = "file:///~/serverless/tutorial.json";
|
||||
const QString REDIRECT_HIFI_ADDRESS = "file:///~/serverless/redirect.json";
|
||||
const QString LOGIN_SCREEN_HIFI_ADDRESS = "file:///~/serverless/login.json";
|
||||
const QString ADDRESS_MANAGER_SETTINGS_GROUP = "AddressManager";
|
||||
const QString SETTINGS_CURRENT_ADDRESS_KEY = "address";
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
extern const QString DEFAULT_HIFI_ADDRESS;
|
||||
extern const QString REDIRECT_HIFI_ADDRESS;
|
||||
extern const QString LOGIN_SCREEN_HIFI_ADDRESS;
|
||||
|
||||
const QString SANDBOX_HIFI_ADDRESS = "hifi://localhost";
|
||||
const QString INDEX_PATH = "/";
|
||||
|
|
Loading…
Reference in a new issue