Merge pull request #12119 from luiscuenca/toolbarFix

Fix toolbar is visible on HMD mode
This commit is contained in:
John Conklin II 2018-01-09 09:42:19 -08:00 committed by GitHub
commit fd6c5e72f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7357,6 +7357,7 @@ void Application::updateThreadPoolCount() const {
}
void Application::updateSystemTabletMode() {
if (_settingsLoaded) {
qApp->setProperty(hifi::properties::HMD, isHMDMode());
if (isHMDMode()) {
DependencyManager::get<TabletScriptingInterface>()->setToolbarMode(getHmdTabletBecomesToolbarSetting());
@ -7364,6 +7365,7 @@ void Application::updateSystemTabletMode() {
DependencyManager::get<TabletScriptingInterface>()->setToolbarMode(getDesktopTabletBecomesToolbarSetting());
}
}
}
OverlayID Application::getTabletScreenID() const {
auto HMD = DependencyManager::get<HMDScriptingInterface>();