- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r503 r486 236 236 self._pirepAutoSave = False 237 237 238 self._defaultMSFS = os.name=="nt"239 240 238 self._enableSounds = not secondaryInstallation 241 239 … … 473 471 if pirepAutoSave!=self._pirepAutoSave: 474 472 self._pirepAutoSave = pirepAutoSave 475 self._modified = True476 477 @property478 def defaultMSFS(self):479 """Get if the default simulator type is MS FS."""480 return self._defaultMSFS481 482 @defaultMSFS.setter483 def defaultMSFS(self, defaultMSFS):484 """Set if the default simulator type is MS FS."""485 if defaultMSFS!=self._defaultMSFS:486 self._defaultMSFS = defaultMSFS487 473 self._modified = True 488 474 … … 718 704 ApproachCallouts.fromConfig(config, aircraftType) 719 705 720 self._defaultMSFS = self._getBoolean(config, "general",721 "defaultMSFS", os.name=="nt")722 723 706 self._modified = False 724 707 … … 763 746 "yes" if self._pirepAutoSave else "no") 764 747 765 config.set("general", "defaultMSFS",766 "yes" if self._defaultMSFS else "no")767 768 748 config.add_section(Config._messageTypesSection) 769 749 for messageType in const.messageTypes: … … 910 890 print " pirepAutoSave:", self._pirepAutoSave 911 891 912 print " defaultMSFS:", self._defaultMSFS913 914 892 print " enableSounds:", self._enableSounds 915 893
Note:
See TracChangeset
for help on using the changeset viewer.