mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 20:43:08 +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();
|
||||
});
|
||||
|
||||
HMD.displayModeChanged.connect(function () {
|
||||
if (isActive) {
|
||||
tablet.gotoHomeScreen();
|
||||
}
|
||||
that.setActive(false);
|
||||
});
|
||||
|
||||
Entities.canAdjustLocksChanged.connect(function (canAdjustLocks) {
|
||||
if (isActive && !canAdjustLocks) {
|
||||
that.setActive(false);
|
||||
|
@ -606,7 +613,8 @@ var toolBar = (function () {
|
|||
closeExistingDialogWindow();
|
||||
dialogWindow = Desktop.createWindow("qml/hifi/tablet/New" + entityType + "Window.qml", {
|
||||
title: "New " + entityType + " Entity",
|
||||
flags: Desktop.AlwaysOnTop | Desktop.ForceNative,
|
||||
flags: Desktop.ALWAYS_ON_TOP,
|
||||
presentationMode: Desktop.PresentationMode.NATIVE,
|
||||
size: { x: 500, y: 300 },
|
||||
visible: true
|
||||
});
|
||||
|
|
|
@ -92,7 +92,8 @@ module.exports = (function() {
|
|||
var windowRect = getWindowRect(this.settingsKey, defaultRect);
|
||||
this.window = Desktop.createWindow(this.qmlPath, {
|
||||
title: this.title,
|
||||
flags: Desktop.AlwaysOnTop | Desktop.ForceNative,
|
||||
flags: Desktop.ALWAYS_ON_TOP,
|
||||
presentationMode: Desktop.PresentationMode.NATIVE,
|
||||
size: windowRect.size,
|
||||
visible: true,
|
||||
position: windowRect.position
|
||||
|
|
Loading…
Reference in a new issue