Changeset 1110:67a5ba8a8664 for src


Ignore:
Timestamp:
09/23/23 14:46:51 (14 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The arrival METAR is changed on landing even when SimBrief is used

File:
1 edited

Legend:

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

    r1106 r1110  
    38823882            self._wizard.departureMETARChanged(flightInfo["orig_metar"],
    38833883                                               self)
    3884             self._wizard.arrivalMETARChanged(flightInfo["dest_metar"], self)
     3884            self._wizard.arrivalMETARChanged(flightInfo["dest_metar"], self,
     3885                                             fromDownload = True)
    38853886            self._wizard.nextPage()
    38863887        else:
     
    44714472        self.metarEdited = False
    44724473
    4473     def changeMETAR(self, metar):
     4474    def changeMETAR(self, metar, fromEditing = True):
    44744475        """Change the METAR as a result of an edit on one of the other
    44754476        pages."""
     
    44794480
    44804481        self._updateButton()
    4481         self.metarEdited = True
     4482        self.metarEdited = fromEditing
    44824483
    44834484    def activate(self):
     
    48744875        self._rto.set_sensitive(enabled)
    48754876
    4876     def changeMETAR(self, metar):
     4877    def changeMETAR(self, metar, fromEditing = True):
    48774878        """Change the METAR as a result of an edit on one of the other
    48784879        pages."""
     
    53935394        self._updateForwardButton()
    53945395
    5395     def changeMETAR(self, metar):
     5396    def changeMETAR(self, metar, fromEditing = True):
    53965397        """Change the METAR as a result of an edit on one of the other
    53975398        pages."""
     
    66416642                page.changeMETAR(metar)
    66426643
    6643     def arrivalMETARChanged(self, metar, originator):
     6644    def arrivalMETARChanged(self, metar, originator, fromDownload = False):
    66446645        """Called when the arrival METAR has been edited on one of the
    66456646        pages.
     
    66496650        for page in [self._arrivalBriefingPage, self._landingPage]:
    66506651            if page is not originator:
    6651                 page.changeMETAR(metar)
     6652                page.changeMETAR(metar, fromEditing = not fromDownload)
    66526653
    66536654    def _removePendingFlight(self, flight):
Note: See TracChangeset for help on using the changeset viewer.