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