mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:12:46 +02:00
refactor
This commit is contained in:
parent
319913e6af
commit
9a81410762
1 changed files with 7 additions and 6 deletions
|
@ -7357,12 +7357,13 @@ void Application::updateThreadPoolCount() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::updateSystemTabletMode() {
|
void Application::updateSystemTabletMode() {
|
||||||
if (!_settingsLoaded) return;
|
if (_settingsLoaded) {
|
||||||
qApp->setProperty(hifi::properties::HMD, isHMDMode());
|
qApp->setProperty(hifi::properties::HMD, isHMDMode());
|
||||||
if (isHMDMode()) {
|
if (isHMDMode()) {
|
||||||
DependencyManager::get<TabletScriptingInterface>()->setToolbarMode(getHmdTabletBecomesToolbarSetting());
|
DependencyManager::get<TabletScriptingInterface>()->setToolbarMode(getHmdTabletBecomesToolbarSetting());
|
||||||
} else {
|
} else {
|
||||||
DependencyManager::get<TabletScriptingInterface>()->setToolbarMode(getDesktopTabletBecomesToolbarSetting());
|
DependencyManager::get<TabletScriptingInterface>()->setToolbarMode(getDesktopTabletBecomesToolbarSetting());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue