adding tablet close upon login

This commit is contained in:
Wayne Chen 2019-01-15 10:02:00 -08:00
parent 2d16e71e74
commit 5c54930910
2 changed files with 8 additions and 5 deletions

View file

@ -279,7 +279,6 @@ Item {
"withOculus": loggingInBody.withOculus, "errorString": errorString });
} else if (loggingInBody.withOculus) {
errorString = "Your Oculus authentication has failed. Please make sure you are logged into Oculus and try again."
console.log("loggingInBody- withOculus: " + loggingInBody.withOculus);
bodyLoader.setSource("CompleteProfileBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": loggingInBody.withSteam,
"withOculus": loggingInBody.withOculus, "errorString": errorString });
} else {

View file

@ -14,6 +14,8 @@ import QtQuick 2.5
import controlsUit 1.0 as HifiControlsUit
import stylesUit 1.0 as HifiStylesUit
import TabletScriptingInterface 1.0
import "../LoginDialog"
FocusScope {
@ -25,8 +27,7 @@ FocusScope {
width: parent.width
height: parent.height
signal sendToScript(var message);
signal canceled();
property var tabletProxy: Tablet.getTablet("com.highfidelity.interface.tablet.system");
property bool isHMD: false
property bool gotoPreviousApp: false;
@ -52,6 +53,7 @@ FocusScope {
}
function tryDestroy() {
tabletProxy.gotoHomeScreen();
}
MouseArea {
@ -76,7 +78,7 @@ FocusScope {
interval: 200
onTriggered: {
if (MenuInterface.isOptionChecked("Use 3D Keyboard")) {
if (MenuInterface.isOptionChecked("Use 3D Keyboard") && HMD.active) {
KeyboardScriptingInterface.raised = true;
}
}
@ -168,7 +170,9 @@ FocusScope {
Component.onDestruction: {
loginKeyboard.raised = false;
KeyboardScriptingInterface.raised = false;
if (HMD.active) {
KeyboardScriptingInterface.raised = false;
}
}
Component.onCompleted: {