- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r897 r738 673 673 """Determine if RPC calls should be used.""" 674 674 return self._useRPC 675 676 @useRPC.setter 677 def useRPC(self, useRPC): 678 """Set whether RPC calls should be used.""" 679 if useRPC!=self._useRPC: 680 self._useRPC = useRPC 681 self._modified = True 675 682 676 683 def getChecklist(self, aircraftType): … … 781 788 Config.DEFAULT_UPDATE_URL + 782 789 ("/exp" if secondaryInstallation else "")) 790 self._useRPC = self._getBoolean(config, "general", "useRPC", True) 783 791 784 792 for aircraftType in const.aircraftTypes: … … 873 881 config.set("update", "url", self._updateURL) 874 882 883 config.set("general", "useRPC", 884 "yes" if self._useRPC else "no") 885 875 886 config.add_section(Checklist.SECTION) 876 887 config.add_section(ApproachCallouts.SECTION) … … 1007 1018 print " autoUpdate:", self._autoUpdate 1008 1019 print " updateURL:", self._updateURL 1020 print " useRPC:", self._useRPC 1009 1021 1010 1022 print " messageTypeLevels:"
Note:
See TracChangeset
for help on using the changeset viewer.