mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
Allow the user to bring up the tablet when a message is open in the tablet
This commit is contained in:
parent
08ee2fd43f
commit
45829574c2
1 changed files with 2 additions and 1 deletions
|
@ -1625,9 +1625,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