History

3D Keyboard

Dante Ruiz committed 8 years ago

Commit 501746b1 parent b97fd6e131 files · +3681 −-43Browse files

Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 131 files). Show all

Unified · Split

interface/src/scripting/HMDScriptingInterface.cpp+5−2
@@ -119,8 +119,11 @@ void HMDScriptingInterface::toggleShouldShowTablet() { · 118 unmodified lines
119119 }
120120
121121 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+ }
124127 }
125128
126129 QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) {