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 | 121 | void HMDScriptingInterface::setShouldShowTablet(bool value) { |
| 122 | − _showTablet = value; | |
| 123 | − _tabletContextualMode = false; | |
| 122 | + if (_showTablet != value) { | |
| 123 | + _showTablet = value; | |
| 124 | + _tabletContextualMode = false; | |
| 125 | + emit showTabletChanged(value); | |
| 126 | + } | |
| 124 | 127 | } |
| 125 | 128 | |
| 126 | 129 | QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) { |