- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r491 r501 69 69 self._flight = None 70 70 self._simulator = None 71 self._fsType = None 71 72 self._monitoring = False 72 73 … … 208 209 209 210 @property 211 def fsType(self): 212 """Get the flight simulator type.""" 213 return self._fsType 214 215 @property 210 216 def entranceExam(self): 211 217 """Get whether an entrance exam is about to be taken.""" … … 428 434 self._wizard.connected(fsType, descriptor) 429 435 self._reconnecting = False 436 self._fsType = fsType 430 437 self._listenHotkeys() 431 438 … … 512 519 """Reset the GUI.""" 513 520 self._disconnect() 521 522 self._simulator = None 514 523 515 524 self._flightInfo.reset() … … 887 896 self._stdioStartingLine = False 888 897 889 def connectSimulator(self, aircraftType ):898 def connectSimulator(self, aircraftType, simulatorType): 890 899 """Connect to the simulator for the first time.""" 891 900 self._logger.reset() … … 898 907 899 908 if self._simulator is None: 900 self._simulator = fs.createSimulator( const.SIM_MSFS9, self)909 self._simulator = fs.createSimulator(simulatorType, self) 901 910 fs.setupMessageSending(self.config, self._simulator) 902 911 self._setupTimeSync()
Note:
See TracChangeset
for help on using the changeset viewer.