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