Ignore:
Timestamp:
04/07/13 07:19:12 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
xplane
Phase:
public
Message:

The default simulator type is now remembered

File:
1 edited

Legend:

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

    r501 r503  
    10181018
    10191019        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)
    10221023
    10231024    def finalize(self):
     
    10401041        else:
    10411042            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
    10431049        self._wizard._connectSimulator(simulatorType)
    10441050
Note: See TracChangeset for help on using the changeset viewer.