Ignore:
Timestamp:
04/04/22 13:59:17 (2 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

RPC is the only communication method (re #357)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/config.py

    r1040 r1044  
    259259        #    self._updateURL += "/exp"
    260260        self._updateURLUpdated = True
    261         self._useRPC = True
    262261
    263262        self._messageTypeLevels = {}
     
    668667        if updateURL!=self._updateURL:
    669668            self._updateURL = updateURL
    670             self._modified = True
    671 
    672     @property
    673     def useRPC(self):
    674         """Determine if RPC calls should be used."""
    675         return self._useRPC
    676 
    677     @useRPC.setter
    678     def useRPC(self, useRPC):
    679         """Set whether RPC calls should be used."""
    680         if useRPC!=self._useRPC:
    681             self._useRPC = useRPC
    682669            self._modified = True
    683670
     
    798785            self._updateURLUpdated = True
    799786
    800         self._useRPC = self._getBoolean(config, "general", "useRPC", True)
    801 
    802787        for aircraftType in const.aircraftTypes:
    803788            self._checklists[aircraftType] = \
     
    892877        config.set("update", "urlUpdated", self._updateURLUpdated)
    893878
    894         config.set("general", "useRPC",
    895                    "yes" if self._useRPC else "no")
    896 
    897879        config.add_section(Checklist.SECTION)
    898880        config.add_section(ApproachCallouts.SECTION)
     
    10301012        print("  updateURL:", self._updateURL)
    10311013        print("  updateURLUpdated:", self._updateURLUpdated)
    1032         print("  useRPC:", self._useRPC)
    10331014
    10341015        print("  messageTypeLevels:")
Note: See TracChangeset for help on using the changeset viewer.