fixing desktop login page crash

This commit is contained in:
Wayne Chen 2019-01-16 10:50:29 -08:00
parent d38a657c54
commit c54bce3953
2 changed files with 4 additions and 4 deletions

View file

@ -461,7 +461,7 @@ Item {
console.log("Create Failed: " + error);
if (completeProfileBody.withOculus) {
loginErrorMessage.visible = true;
loginErrorMessage.text = "Make sure email and username fields are filled out.";
loginErrorMessage.text = error;
if (loginErrorMessageTextMetrics.width > root.bannerWidth && root.isTablet) {
loginErrorMessage.wrapMode = Text.WordWrap;

View file

@ -29,7 +29,7 @@ FocusScope {
property var tabletProxy: Tablet.getTablet("com.highfidelity.interface.tablet.system");
property bool isHMD: false
property bool isHMD: HMD.active
property bool gotoPreviousApp: false;
property bool keyboardEnabled: false
@ -78,7 +78,7 @@ FocusScope {
interval: 200
onTriggered: {
if (MenuInterface.isOptionChecked("Use 3D Keyboard") && HMD.active) {
if (MenuInterface.isOptionChecked("Use 3D Keyboard") && root.isHMD) {
KeyboardScriptingInterface.raised = true;
}
}
@ -170,7 +170,7 @@ FocusScope {
Component.onDestruction: {
loginKeyboard.raised = false;
if (HMD.active) {
if (root.isHMD) {
KeyboardScriptingInterface.raised = false;
}
}