mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
if tablet wasn't visible when wallet passphrase screen hid it, don't show it when passphrase page is done.
This commit is contained in:
parent
8a0b8aa034
commit
a64f0d2779
1 changed files with 11 additions and 0 deletions
|
@ -117,8 +117,19 @@ var selectionDisplay = null; // for gridTool.js to ignore
|
|||
|
||||
var onWalletScreen = false;
|
||||
var onCommerceScreen = false;
|
||||
var tabletShouldBeVisibleInSecondaryCamera = false;
|
||||
|
||||
function setTabletVisibleInSecondaryCamera(visibleInSecondaryCam) {
|
||||
if (visibleInSecondaryCam) {
|
||||
// if we're potentially showing the tablet, only do so if it was visible before
|
||||
if (!tabletShouldBeVisibleInSecondaryCamera) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// if we're hiding the tablet, check to see if it was visible in the first place
|
||||
tabletShouldBeVisibleInSecondaryCamera = Overlays.getProperty(HMD.tabletID, "isVisibleInSecondaryCamera");
|
||||
}
|
||||
|
||||
Overlays.editOverlay(HMD.tabletID, { isVisibleInSecondaryCamera : visibleInSecondaryCam });
|
||||
Overlays.editOverlay(HMD.homeButtonID, { isVisibleInSecondaryCamera : visibleInSecondaryCam });
|
||||
Overlays.editOverlay(HMD.homeButtonHighlightIDtabletID, { isVisibleInSecondaryCamera : visibleInSecondaryCam });
|
||||
|
|
Loading…
Reference in a new issue