Changeset 897:673cfb8bd1d6 for src/mlx


Ignore:
Timestamp:
03/16/18 08:54:21 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

RPC-based communication is used always.

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/config.py

    r738 r897  
    673673        """Determine if RPC calls should be used."""
    674674        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
    682675
    683676    def getChecklist(self, aircraftType):
     
    788781                                    Config.DEFAULT_UPDATE_URL +
    789782                                    ("/exp" if secondaryInstallation else ""))
    790         self._useRPC = self._getBoolean(config, "general", "useRPC", True)
    791783
    792784        for aircraftType in const.aircraftTypes:
     
    881873        config.set("update", "url", self._updateURL)
    882874
    883         config.set("general", "useRPC",
    884                    "yes" if self._useRPC else "no")
    885 
    886875        config.add_section(Checklist.SECTION)
    887876        config.add_section(ApproachCallouts.SECTION)
     
    10181007        print "  autoUpdate:", self._autoUpdate
    10191008        print "  updateURL:", self._updateURL
    1020         print "  useRPC:", self._useRPC
    10211009
    10221010        print "  messageTypeLevels:"
  • src/mlx/gui/prefs.py

    r738 r897  
    276276
    277277        self._updateURL.set_text(config.updateURL)
    278 
    279         self._useRPC.set_active(config.useRPC)
    280278
    281279        self._settingFromConfig = False
     
    322320        config.autoUpdate = self._autoUpdate.get_active()
    323321        config.updateURL = self._updateURL.get_text()
    324         config.useRPC = self._useRPC.get_active()
    325322
    326323    def _buildGeneral(self):
     
    817814        updateURLBox.pack_start(self._updateURL, True, True, 4)
    818815
    819         self._useRPC = gtk.CheckButton(xstr("prefs_use_rpc"))
    820         mainBox.pack_start(self._useRPC, False, False, 16)
    821 
    822         self._useRPC.set_use_underline(True)
    823         self._useRPC.set_tooltip_text(xstr("prefs_use_rpc_tooltip"))
    824 
    825816        return mainAlignment
    826817
Note: See TracChangeset for help on using the changeset viewer.