mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:14:28 +02:00
Merge pull request #10855 from jherico/snapshot
Fix snapshot connection errors
This commit is contained in:
commit
3f48c7aef5
1 changed files with 7 additions and 3 deletions
|
@ -384,7 +384,6 @@ function onButtonClicked() {
|
||||||
} else {
|
} else {
|
||||||
fillImageDataFromPrevious();
|
fillImageDataFromPrevious();
|
||||||
tablet.gotoWebScreen(SNAPSHOT_REVIEW_URL);
|
tablet.gotoWebScreen(SNAPSHOT_REVIEW_URL);
|
||||||
tablet.webEventReceived.connect(onMessage);
|
|
||||||
HMD.openTablet();
|
HMD.openTablet();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -660,10 +659,15 @@ function maybeDeleteSnapshotStories() {
|
||||||
storyIDsToMaybeDelete = [];
|
storyIDsToMaybeDelete = [];
|
||||||
}
|
}
|
||||||
function onTabletScreenChanged(type, url) {
|
function onTabletScreenChanged(type, url) {
|
||||||
|
var wasInSnapshotReview = isInSnapshotReview;
|
||||||
isInSnapshotReview = (type === "Web" && url === SNAPSHOT_REVIEW_URL);
|
isInSnapshotReview = (type === "Web" && url === SNAPSHOT_REVIEW_URL);
|
||||||
button.editProperties({ isActive: isInSnapshotReview });
|
button.editProperties({ isActive: isInSnapshotReview });
|
||||||
if (!isInSnapshotReview) {
|
if (isInSnapshotReview !== wasInSnapshotReview) {
|
||||||
tablet.webEventReceived.disconnect(onMessage);
|
if (isInSnapshotReview) {
|
||||||
|
tablet.webEventReceived.connect(onMessage);
|
||||||
|
} else {
|
||||||
|
tablet.webEventReceived.disconnect(onMessage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function onUsernameChanged() {
|
function onUsernameChanged() {
|
||||||
|
|
Loading…
Reference in a new issue