Changeset 1110:67a5ba8a8664 for src/mlx/gui
- Timestamp:
- 09/23/23 14:46:51 (14 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r1106 r1110 3882 3882 self._wizard.departureMETARChanged(flightInfo["orig_metar"], 3883 3883 self) 3884 self._wizard.arrivalMETARChanged(flightInfo["dest_metar"], self) 3884 self._wizard.arrivalMETARChanged(flightInfo["dest_metar"], self, 3885 fromDownload = True) 3885 3886 self._wizard.nextPage() 3886 3887 else: … … 4471 4472 self.metarEdited = False 4472 4473 4473 def changeMETAR(self, metar ):4474 def changeMETAR(self, metar, fromEditing = True): 4474 4475 """Change the METAR as a result of an edit on one of the other 4475 4476 pages.""" … … 4479 4480 4480 4481 self._updateButton() 4481 self.metarEdited = True4482 self.metarEdited = fromEditing 4482 4483 4483 4484 def activate(self): … … 4874 4875 self._rto.set_sensitive(enabled) 4875 4876 4876 def changeMETAR(self, metar ):4877 def changeMETAR(self, metar, fromEditing = True): 4877 4878 """Change the METAR as a result of an edit on one of the other 4878 4879 pages.""" … … 5393 5394 self._updateForwardButton() 5394 5395 5395 def changeMETAR(self, metar ):5396 def changeMETAR(self, metar, fromEditing = True): 5396 5397 """Change the METAR as a result of an edit on one of the other 5397 5398 pages.""" … … 6641 6642 page.changeMETAR(metar) 6642 6643 6643 def arrivalMETARChanged(self, metar, originator ):6644 def arrivalMETARChanged(self, metar, originator, fromDownload = False): 6644 6645 """Called when the arrival METAR has been edited on one of the 6645 6646 pages. … … 6649 6650 for page in [self._arrivalBriefingPage, self._landingPage]: 6650 6651 if page is not originator: 6651 page.changeMETAR(metar )6652 page.changeMETAR(metar, fromEditing = not fromDownload) 6652 6653 6653 6654 def _removePendingFlight(self, flight):
Note:
See TracChangeset
for help on using the changeset viewer.