From 168584169cf612524a0c55e2447b63daff04a242 Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Fri, 6 Jul 2018 23:19:38 +0300 Subject: [PATCH] do not close avatarapp on hiding tablet --- scripts/system/avatarapp.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/system/avatarapp.js b/scripts/system/avatarapp.js index 672399cfc7..c8aa69dcb4 100644 --- a/scripts/system/avatarapp.js +++ b/scripts/system/avatarapp.js @@ -422,7 +422,6 @@ startup(); var isWired = false; function off() { if (isWired) { // It is not ok to disconnect these twice, hence guard. - tablet.tabletShownChanged.disconnect(tabletVisibilityChanged); isWired = false; } @@ -460,12 +459,6 @@ function on() { MyAvatar.targetScaleChanged.connect(onTargetScaleChanged); } -function tabletVisibilityChanged() { - if (!tablet.tabletShown) { - tablet.gotoHomeScreen(); - } -} - function onTabletButtonClicked() { if (onAvatarAppScreen) { // for toolbar-mode: go back to home screen, this will close the window. @@ -473,7 +466,6 @@ function onTabletButtonClicked() { } else { ContextOverlay.enabled = false; tablet.loadQMLSource(AVATARAPP_QML_SOURCE); - tablet.tabletShownChanged.connect(tabletVisibilityChanged); isWired = true; } }