diff options
Diffstat (limited to 'src/components/HMI/app/controller/sdl/AppController.js')
-rw-r--r-- | src/components/HMI/app/controller/sdl/AppController.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/HMI/app/controller/sdl/AppController.js b/src/components/HMI/app/controller/sdl/AppController.js index 8f37fa51f0..784e7e8d1c 100644 --- a/src/components/HMI/app/controller/sdl/AppController.js +++ b/src/components/HMI/app/controller/sdl/AppController.js @@ -107,10 +107,11 @@ SDL.SDLAppController = Em.Object.create({ */ VRPerformAction: function (element) { + SDL.SDLController.vrInteractionResponse(SDL.SDLModel.resultCode["SUCCESS"], element.commandID); + if (SDL.SDLModel.VRActive) { SDL.SDLModel.toggleProperty('VRActive'); } - SDL.SDLController.vrInteractionResponse(SDL.SDLModel.resultCode["SUCCESS"], element.commandID); }, /** @@ -143,9 +144,6 @@ SDL.SDLAppController = Em.Object.create({ */ onVRCommand: function (element) { - if (SDL.SDLModel.VRActive) { - SDL.SDLModel.toggleProperty('VRActive'); - } FFW.VR.onCommand(element.commandID, element.appID); }, |