mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 23:36:47 +02:00
allowed tablet to toggle when a dialog is open
This commit is contained in:
parent
4a35ad105b
commit
bedd0628b9
1 changed files with 1 additions and 1 deletions
|
@ -1706,7 +1706,7 @@ void Application::toggleTabletUI(bool shouldOpen) const {
|
||||||
auto hmd = DependencyManager::get<HMDScriptingInterface>();
|
auto hmd = DependencyManager::get<HMDScriptingInterface>();
|
||||||
TabletProxy* tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet(SYSTEM_TABLET));
|
TabletProxy* tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet(SYSTEM_TABLET));
|
||||||
bool messageOpen = tablet->isMessageDialogOpen();
|
bool messageOpen = tablet->isMessageDialogOpen();
|
||||||
if ((!messageOpen || (messageOpen && !hmd->getShouldShowTablet())) && !(shouldOpen && hmd->getShouldShowTablet())) {
|
if (!(shouldOpen && hmd->getShouldShowTablet())) {
|
||||||
auto HMD = DependencyManager::get<HMDScriptingInterface>();
|
auto HMD = DependencyManager::get<HMDScriptingInterface>();
|
||||||
HMD->toggleShouldShowTablet();
|
HMD->toggleShouldShowTablet();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue