Simplify Code
Simplify Code

Since it's just a state-toogler, use the return value of the
method to set the values directly.

Signed-off-by: Tomaz Canabrava <ccb3839ae5be3c29427fdefd1acdf43769f66bb0@intel.com>

dagoodma/qgroundcontrol,ethz-asl/qgc_asl,scott-eddy/qgroundcontrol,remspoor/qgroundcontrol,Hunter522/qgroundcontrol,scott-eddy/qgroundcontrol,RedoXyde/PX4_qGCS,scott-eddy/qgroundcontrol,scott-eddy/qgroundcontrol,cfelipesouza/qgroundcontrol,cfelipesouza/qgroundcontrol,catch-twenty-two/qgroundcontrol,remspoor/qgroundcontrol,mihadyuk/qgroundcontrol,ethz-asl/qgc_asl,cfelipesouza/qgroundcontrol,scott-eddy/qgroundcontrol,cfelipesouza/qgroundcontrol,dagoodma/qgroundcontrol,dagoodma/qgroundcontrol,ethz-asl/qgc_asl,kd0aij/qgroundcontrol,CornerOfSkyline/qgroundcontrol,mihadyuk/qgroundcontrol,kd0aij/qgroundcontrol,mihadyuk/qgroundcontrol,catch-twenty-two/qgroundcontrol,cfelipesouza/qgroundcontrol,kd0aij/qgroundcontrol,Hunter522/qgroundcontrol,CornerOfSkyline/qgroundcontrol,Hunter522/qgroundcontrol,kd0aij/qgroundcontrol,dagoodma/qgroundcontrol,Hunter522/qgroundcontrol,mihadyuk/qgroundcontrol,remspoor/qgroundcontrol,catch-twenty-two/qgroundcontrol,Hunter522/qgroundcontrol,CornerOfSkyline/qgroundcontrol,catch-twenty-two/qgroundcontrol,RedoXyde/PX4_qGCS,RedoXyde/PX4_qGCS,remspoor/qgroundcontrol,ethz-asl/qgc_asl,RedoXyde/PX4_qGCS,remspoor/qgroundcontrol,CornerOfSkyline/qgroundcontrol,scott-eddy/qgroundcontrol,mihadyuk/qgroundcontrol,remspoor/qgroundcontrol,RedoXyde/PX4_qGCS,kd0aij/qgroundcontrol,RedoXyde/PX4_qGCS,CornerOfSkyline/qgroundcontrol,catch-twenty-two/qgroundcontrol,cfelipesouza/qgroundcontrol,ethz-asl/qgc_asl,catch-twenty-two/qgroundcontrol,dagoodma/qgroundcontrol,CornerOfSkyline/qgroundcontrol,mihadyuk/qgroundcontrol,kd0aij/qgroundcontrol,Hunter522/qgroundcontrol,dagoodma/qgroundcontrol