This commit is contained in:
Thijs Wenker 2018-07-09 16:38:53 +02:00
parent 4b2e0765db
commit b1884b0841
3 changed files with 5 additions and 4 deletions

View file

@ -612,11 +612,12 @@ var toolBar = (function () {
} else {
closeExistingDialogWindow();
var qmlPath = Script.resourcesPath() + "qml/hifi/tablet/New" + entityType + "Window.qml";
var DIALOG_WINDOW_SIZE = { x: 500, y: 300 };
dialogWindow = Desktop.createWindow(qmlPath, {
title: "New " + entityType + " Entity",
flags: Desktop.ALWAYS_ON_TOP | Desktop.CLOSE_BUTTON_HIDES,
presentationMode: Desktop.PresentationMode.NATIVE,
size: { x: 500, y: 300 },
size: DIALOG_WINDOW_SIZE,
visible: true
});
dialogWindow.fromQml.connect(fromQml);