mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:48:52 +02:00
- native window presentation mode update
- de-activate create on displayMode change.
This commit is contained in:
parent
3a6ab3562f
commit
7ed03c2f77
2 changed files with 11 additions and 2 deletions
|
@ -545,6 +545,13 @@ var toolBar = (function () {
|
||||||
checkEditPermissionsAndUpdate();
|
checkEditPermissionsAndUpdate();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
HMD.displayModeChanged.connect(function () {
|
||||||
|
if (isActive) {
|
||||||
|
tablet.gotoHomeScreen();
|
||||||
|
}
|
||||||
|
that.setActive(false);
|
||||||
|
});
|
||||||
|
|
||||||
Entities.canAdjustLocksChanged.connect(function (canAdjustLocks) {
|
Entities.canAdjustLocksChanged.connect(function (canAdjustLocks) {
|
||||||
if (isActive && !canAdjustLocks) {
|
if (isActive && !canAdjustLocks) {
|
||||||
that.setActive(false);
|
that.setActive(false);
|
||||||
|
@ -606,7 +613,8 @@ var toolBar = (function () {
|
||||||
closeExistingDialogWindow();
|
closeExistingDialogWindow();
|
||||||
dialogWindow = Desktop.createWindow("qml/hifi/tablet/New" + entityType + "Window.qml", {
|
dialogWindow = Desktop.createWindow("qml/hifi/tablet/New" + entityType + "Window.qml", {
|
||||||
title: "New " + entityType + " Entity",
|
title: "New " + entityType + " Entity",
|
||||||
flags: Desktop.AlwaysOnTop | Desktop.ForceNative,
|
flags: Desktop.ALWAYS_ON_TOP,
|
||||||
|
presentationMode: Desktop.PresentationMode.NATIVE,
|
||||||
size: { x: 500, y: 300 },
|
size: { x: 500, y: 300 },
|
||||||
visible: true
|
visible: true
|
||||||
});
|
});
|
||||||
|
|
|
@ -92,7 +92,8 @@ module.exports = (function() {
|
||||||
var windowRect = getWindowRect(this.settingsKey, defaultRect);
|
var windowRect = getWindowRect(this.settingsKey, defaultRect);
|
||||||
this.window = Desktop.createWindow(this.qmlPath, {
|
this.window = Desktop.createWindow(this.qmlPath, {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
flags: Desktop.AlwaysOnTop | Desktop.ForceNative,
|
flags: Desktop.ALWAYS_ON_TOP,
|
||||||
|
presentationMode: Desktop.PresentationMode.NATIVE,
|
||||||
size: windowRect.size,
|
size: windowRect.size,
|
||||||
visible: true,
|
visible: true,
|
||||||
position: windowRect.position
|
position: windowRect.position
|
||||||
|
|
Loading…
Reference in a new issue