Merge pull request #13854 from wayne-chen/fixTabletButton-case-16847

MS16847: Tablet button doesn't load in HMD mode
This commit is contained in:
John Conklin II 2018-08-29 13:20:04 -07:00 committed by GitHub
commit 47ce8be526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -140,8 +140,7 @@ int TabletButtonsProxyModel::buttonIndex(const QString &uuid) {
return -1;
}
void TabletButtonsProxyModel::setPageIndex(int pageIndex)
{
void TabletButtonsProxyModel::setPageIndex(int pageIndex) {
if (_pageIndex == pageIndex)
return;
@ -465,6 +464,9 @@ void TabletProxy::onTabletShown() {
_showRunningScripts = false;
pushOntoStack("hifi/dialogs/TabletRunningScripts.qml");
}
if (_currentPathLoaded == TABLET_HOME_SOURCE_URL) {
loadHomeScreen(true);
}
}
}

View file

@ -306,7 +306,7 @@
}
wantsMenu = clicked;
});
clickMapping.from(Controller.Standard.Start).peek().to(function (clicked) {
if (clicked) {
//activeHudPoint2dGamePad();