mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Merge pull request #9891 from druiz17/tablet-xbox-fix
Allow the user to bring up the tablet when a message is open
This commit is contained in:
commit
c53b0dff93
1 changed files with 2 additions and 1 deletions
|
@ -1631,9 +1631,10 @@ QString Application::getUserAgent() {
|
|||
|
||||
void Application::toggleTabletUI() const {
|
||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||
auto hmd = DependencyManager::get<HMDScriptingInterface>();
|
||||
TabletProxy* tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
||||
bool messageOpen = tablet->isMessageDialogOpen();
|
||||
if (!messageOpen) {
|
||||
if (!messageOpen || (messageOpen && !hmd->getShouldShowTablet())) {
|
||||
auto HMD = DependencyManager::get<HMDScriptingInterface>();
|
||||
HMD->toggleShouldShowTablet();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue