Changeset 503:7a2894109717 for src/mlx/gui
- Timestamp:
- 04/07/13 07:19:12 (12 years ago)
- Branch:
- xplane
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r501 r503 1018 1018 1019 1019 if self._selectSimulator: 1020 self._selectMSFS.set_active(os.name=="nt") 1021 self._selectXPlane.set_active(os.name!="nt") 1020 config = self._wizard.gui.config 1021 self._selectMSFS.set_active(config.defaultMSFS) 1022 self._selectXPlane.set_active(not config.defaultMSFS) 1022 1023 1023 1024 def finalize(self): … … 1040 1041 else: 1041 1042 simulatorType = const.SIM_MSFS9 if os.name=="nt" \ 1042 else const.SIM_XPLANE10 1043 else const.SIM_XPLANE10 1044 1045 config = self._wizard.gui.config 1046 config.defaultMSFS = simulatorType == const.SIM_MSFS9 1047 config.save() 1048 1043 1049 self._wizard._connectSimulator(simulatorType) 1044 1050
Note:
See TracChangeset
for help on using the changeset viewer.