Ignore:
File:
1 edited

Legend:

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

    r501 r491  
    6969        self._flight = None
    7070        self._simulator = None
    71         self._fsType = None
    7271        self._monitoring = False
    7372
     
    209208
    210209    @property
    211     def fsType(self):
    212         """Get the flight simulator type."""
    213         return self._fsType
    214 
    215     @property
    216210    def entranceExam(self):
    217211        """Get whether an entrance exam is about to be taken."""
     
    434428            self._wizard.connected(fsType, descriptor)
    435429        self._reconnecting = False
    436         self._fsType = fsType
    437430        self._listenHotkeys()
    438431
     
    519512        """Reset the GUI."""
    520513        self._disconnect()
    521 
    522         self._simulator = None
    523514
    524515        self._flightInfo.reset()
     
    896887            self._stdioStartingLine = False
    897888
    898     def connectSimulator(self, aircraftType, simulatorType):
     889    def connectSimulator(self, aircraftType):
    899890        """Connect to the simulator for the first time."""
    900891        self._logger.reset()
     
    907898
    908899        if self._simulator is None:
    909             self._simulator = fs.createSimulator(simulatorType, self)
     900            self._simulator = fs.createSimulator(const.SIM_MSFS9, self)
    910901            fs.setupMessageSending(self.config, self._simulator)
    911902            self._setupTimeSync()
Note: See TracChangeset for help on using the changeset viewer.