Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 131 files). Show all
Unified · Split
| @@ -119,8 +119,11 @@ void HMDScriptingInterface::toggleShouldShowTablet() { · 118 unmodified lines | |||
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | void HMDScriptingInterface::setShouldShowTablet(bool value) { | 121 | void HMDScriptingInterface::setShouldShowTablet(bool value) { |
| 122 | _showTablet = value; | 122 | if (_showTablet != value) { |
| 123 | _tabletContextualMode = false; | 123 | _showTablet = value; |
| 124 | _tabletContextualMode = false; | ||
| 125 | emit showTabletChanged(value); | ||
| 126 | } | ||
| 124 | } | 127 | } |
| 125 | 128 | ||
| 126 | QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) { | 129 | QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) { |