mirror of
https://github.com/overte-org/overte.git
synced 2025-08-03 22:43:15 +02:00
Create app (desktop mode):
- Fix insta-close on switching from other app to create app. - Fix new model and particle dialogs.
This commit is contained in:
parent
d5fb094d8a
commit
574bfd177d
1 changed files with 3 additions and 2 deletions
|
@ -578,7 +578,7 @@ var toolBar = (function () {
|
|||
});
|
||||
createButton = activeButton;
|
||||
tablet.screenChanged.connect(function (type, url) {
|
||||
var isGoingToHomescreenOnDesktop = (!HMD.active && url === 'hifi/tablet/TabletHome.qml');
|
||||
var isGoingToHomescreenOnDesktop = (!HMD.active && (url === 'hifi/tablet/TabletHome.qml' || url === ''));
|
||||
if (isActive && (type !== "QML" || url !== "hifi/tablet/Edit.qml") && !isGoingToHomescreenOnDesktop) {
|
||||
that.setActive(false);
|
||||
}
|
||||
|
@ -611,7 +611,8 @@ var toolBar = (function () {
|
|||
tablet.pushOntoStack("hifi/tablet/New" + entityType + "Dialog.qml");
|
||||
} else {
|
||||
closeExistingDialogWindow();
|
||||
dialogWindow = Desktop.createWindow("qml/hifi/tablet/New" + entityType + "Window.qml", {
|
||||
var qmlPath = Script.resourcesPath() + "qml/hifi/tablet/New" + entityType + "Window.qml";
|
||||
dialogWindow = Desktop.createWindow(qmlPath, {
|
||||
title: "New " + entityType + " Entity",
|
||||
flags: Desktop.ALWAYS_ON_TOP | Desktop.CLOSE_BUTTON_HIDES,
|
||||
presentationMode: Desktop.PresentationMode.NATIVE,
|
||||
|
|
Loading…
Reference in a new issue