From 3bd546a293849c947e7a23843b40f60a0e3fde1c Mon Sep 17 00:00:00 2001 From: khancyr Date: Mon, 21 Aug 2017 18:54:31 +0200 Subject: [PATCH] Joystick: enable negativethrust by default on supported vehicle --- src/VehicleSetup/JoystickConfig.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VehicleSetup/JoystickConfig.qml b/src/VehicleSetup/JoystickConfig.qml index f2d044b5f..7efe052d5 100644 --- a/src/VehicleSetup/JoystickConfig.qml +++ b/src/VehicleSetup/JoystickConfig.qml @@ -458,9 +458,9 @@ SetupPage { visible: _activeVehicle.supportsNegativeThrust id: negativeThrust text: qsTr("Allow negative Thrust") + enabled: _activeJoystick.negativeThrust = _activeVehicle.supportsNegativeThrust checked: _activeJoystick ? _activeJoystick.negativeThrust : false - - onClicked: _activeJoystick.negativeThrust = checked + onClicked: _activeJoystick.negativeThrust = checked } } -- 2.22.0