Changeset 1044:988bfea3e8db for src/mlx/config.py
- Timestamp:
- 04/04/22 13:59:17 (2 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r1040 r1044 259 259 # self._updateURL += "/exp" 260 260 self._updateURLUpdated = True 261 self._useRPC = True262 261 263 262 self._messageTypeLevels = {} … … 668 667 if updateURL!=self._updateURL: 669 668 self._updateURL = updateURL 670 self._modified = True671 672 @property673 def useRPC(self):674 """Determine if RPC calls should be used."""675 return self._useRPC676 677 @useRPC.setter678 def useRPC(self, useRPC):679 """Set whether RPC calls should be used."""680 if useRPC!=self._useRPC:681 self._useRPC = useRPC682 669 self._modified = True 683 670 … … 798 785 self._updateURLUpdated = True 799 786 800 self._useRPC = self._getBoolean(config, "general", "useRPC", True)801 802 787 for aircraftType in const.aircraftTypes: 803 788 self._checklists[aircraftType] = \ … … 892 877 config.set("update", "urlUpdated", self._updateURLUpdated) 893 878 894 config.set("general", "useRPC",895 "yes" if self._useRPC else "no")896 897 879 config.add_section(Checklist.SECTION) 898 880 config.add_section(ApproachCallouts.SECTION) … … 1030 1012 print(" updateURL:", self._updateURL) 1031 1013 print(" updateURLUpdated:", self._updateURLUpdated) 1032 print(" useRPC:", self._useRPC)1033 1014 1034 1015 print(" messageTypeLevels:")
Note:
See TracChangeset
for help on using the changeset viewer.