Ignore:
Timestamp:
10/31/23 16:10:18 (13 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The cruise level is checked for validity if given even when using SimBrief (re #377)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flight.py

    r1119 r1120  
    30463046            self._wizard.usingSimBrief is not False
    30473047
     3048        cruiseLevelText = self._cruiseLevel.get_text()
     3049        cruiseLevel = int(cruiseLevelText) if cruiseLevelText else 0
     3050
    30483051        alternate = self._alternate.get_text()
    30493052        if useSimBrief:
    3050             self._button.set_sensitive(len(alternate)==0 or len(alternate)==4
    3051                                        or self._wizard.entranceExam)
     3053            self._button.set_sensitive((len(alternate)==0 or len(alternate)==4
     3054                                        or self._wizard.entranceExam) and
     3055                                       (cruiseLevel==0 or cruiseLevel>=50))
    30523056        else:
    30533057            cruiseLevelText = self._cruiseLevel.get_text()
Note: See TracChangeset for help on using the changeset viewer.