fixing create app window on desktop

This commit is contained in:
Wayne Chen 2018-11-07 09:26:34 -08:00
parent 1ded4b6fb8
commit fc32ba9ce3
3 changed files with 8 additions and 7 deletions

View file

@ -54,7 +54,7 @@ Windows.Window {
onSourceChanged: {
if (dynamicContent) {
dynamicContent.destroy();
dynamicContent = null;
dynamicContent = null;
}
QmlSurface.load(source, contentHolder, function(newObject) {
dynamicContent = newObject;
@ -117,7 +117,7 @@ Windows.Window {
console.error("presentationMode should be set.");
}
}
Component.onCompleted: {
// Fix for parent loss on OSX:
parent.heightChanged.connect(updateContentParent);
@ -132,7 +132,7 @@ Windows.Window {
import QtQuick 2.3;
import QtQuick.Window 2.3;
Windows.Window {
Window {
id: root;
Rectangle {
color: hifi.colors.baseGray
@ -215,7 +215,7 @@ Windows.Window {
nativeWindow.raise();
}
}
// Handle message traffic from our loaded QML to the script that launched us
signal sendToScript(var message);

View file

@ -8490,7 +8490,7 @@ void Application::setShowBulletConstraintLimits(bool value) {
}
void Application::checkReadyToCreateLoginDialogOverlay() {
if (qApp->isHMDMode() && qApp->getActiveDisplayPlugin()->isDisplayVisible() && qApp->getLoginDialogPoppedUp() && _loginDialogOverlayID.isNull()) {
if (qApp->isHMDMode() && qApp->getLoginDialogPoppedUp() && _loginDialogOverlayID.isNull()) {
createLoginDialogOverlay();
_loginPointerManager.setUp();
} else if (qApp->getLoginDialogPoppedUp()) {

View file

@ -931,6 +931,7 @@ var toolBar = (function () {
};
that.toggle = function () {
print("toggling");
that.setActive(!isActive);
if (!isActive) {
tablet.gotoHomeScreen();
@ -2014,7 +2015,7 @@ function focusKey(value) {
if (value === 0) { // on release
cameraManager.enable();
if (selectionManager.hasSelection()) {
cameraManager.focus(selectionManager.worldPosition, selectionManager.worldDimensions,
cameraManager.focus(selectionManager.worldPosition, selectionManager.worldDimensions,
Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
}
}
@ -2258,7 +2259,7 @@ var PropertiesTool = function (opts) {
};
that.setVisible(false);
function emitScriptEvent(data) {
var dataString = JSON.stringify(data);
webView.emitScriptEvent(dataString);