enable Desktop.CLOSE_BUTTON_HIDES flag for create app native windows

This commit is contained in:
Thijs Wenker 2018-07-03 18:49:23 +02:00
parent c583c07d9c
commit d5fb094d8a
2 changed files with 2 additions and 2 deletions

View file

@ -613,7 +613,7 @@ var toolBar = (function () {
closeExistingDialogWindow();
dialogWindow = Desktop.createWindow("qml/hifi/tablet/New" + entityType + "Window.qml", {
title: "New " + entityType + " Entity",
flags: Desktop.ALWAYS_ON_TOP,
flags: Desktop.ALWAYS_ON_TOP | Desktop.CLOSE_BUTTON_HIDES,
presentationMode: Desktop.PresentationMode.NATIVE,
size: { x: 500, y: 300 },
visible: true

View file

@ -92,7 +92,7 @@ module.exports = (function() {
var windowRect = getWindowRect(this.settingsKey, defaultRect);
this.window = Desktop.createWindow(this.qmlPath, {
title: this.title,
flags: Desktop.ALWAYS_ON_TOP,
flags: Desktop.ALWAYS_ON_TOP | Desktop.CLOSE_BUTTON_HIDES,
presentationMode: Desktop.PresentationMode.NATIVE,
size: windowRect.size,
visible: true,