Browse Source

Merge pull request #7207 from Williangalvani/fixEnableNotWorking

Start joystick when JoystickEnabled changes
QGC4.4
Don Gagne 6 years ago committed by GitHub
parent
commit
b9d9af59fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/Vehicle/Vehicle.cc

1
src/Vehicle/Vehicle.cc

@ -2298,6 +2298,7 @@ bool Vehicle::joystickEnabled(void) @@ -2298,6 +2298,7 @@ bool Vehicle::joystickEnabled(void)
void Vehicle::setJoystickEnabled(bool enabled)
{
_joystickEnabled = enabled;
_startJoystick(_joystickEnabled);
_saveSettings();
emit joystickEnabledChanged(_joystickEnabled);
}

Loading…
Cancel
Save