Changeset 661:765c05b17f7a for src


Ignore:
Timestamp:
08/08/15 07:42:56 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for the antiCollisionLightsOn variable to be None (re #274).

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r644 r661  
    962962        return (not flight.config.usingFS2Crew or not state.parking or
    963963                flight.stage!=const.STAGE_TAXIAFTERLAND) and \
    964                 not state.antiCollisionLightsOn and \
     964                state.antiCollisionLightsOn is False and \
    965965                self.isEngineCondition(state)
    966966
  • src/mlx/gui/monitor.py

    r496 r661  
    375375
    376376            self._navLightsOn.set_sensitive(aircraftState.navLightsOn is True)
    377             self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn)
     377            self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn is True)
    378378            self._strobeLightsOn.set_sensitive(aircraftState.strobeLightsOn is True)
    379379
Note: See TracChangeset for help on using the changeset viewer.