From 45829574c21c18028b605f6ffe36577fa1849d02 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Wed, 15 Mar 2017 00:02:42 +0100 Subject: [PATCH] Allow the user to bring up the tablet when a message is open in the tablet --- interface/src/Application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 141b168f82..54398a4f07 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1625,9 +1625,10 @@ QString Application::getUserAgent() { void Application::toggleTabletUI() const { auto tabletScriptingInterface = DependencyManager::get(); + auto hmd = DependencyManager::get(); TabletProxy* tablet = dynamic_cast(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system")); bool messageOpen = tablet->isMessageDialogOpen(); - if (!messageOpen) { + if (!messageOpen || (messageOpen && !hmd->getShouldShowTablet())) { auto HMD = DependencyManager::get(); HMD->toggleShouldShowTablet(); }