Changeset 897:673cfb8bd1d6 for src/mlx
- Timestamp:
- 03/16/18 08:54:21 (7 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r738 r897 673 673 """Determine if RPC calls should be used.""" 674 674 return self._useRPC 675 676 @useRPC.setter677 def useRPC(self, useRPC):678 """Set whether RPC calls should be used."""679 if useRPC!=self._useRPC:680 self._useRPC = useRPC681 self._modified = True682 675 683 676 def getChecklist(self, aircraftType): … … 788 781 Config.DEFAULT_UPDATE_URL + 789 782 ("/exp" if secondaryInstallation else "")) 790 self._useRPC = self._getBoolean(config, "general", "useRPC", True)791 783 792 784 for aircraftType in const.aircraftTypes: … … 881 873 config.set("update", "url", self._updateURL) 882 874 883 config.set("general", "useRPC",884 "yes" if self._useRPC else "no")885 886 875 config.add_section(Checklist.SECTION) 887 876 config.add_section(ApproachCallouts.SECTION) … … 1018 1007 print " autoUpdate:", self._autoUpdate 1019 1008 print " updateURL:", self._updateURL 1020 print " useRPC:", self._useRPC1021 1009 1022 1010 print " messageTypeLevels:" -
src/mlx/gui/prefs.py
r738 r897 276 276 277 277 self._updateURL.set_text(config.updateURL) 278 279 self._useRPC.set_active(config.useRPC)280 278 281 279 self._settingFromConfig = False … … 322 320 config.autoUpdate = self._autoUpdate.get_active() 323 321 config.updateURL = self._updateURL.get_text() 324 config.useRPC = self._useRPC.get_active()325 322 326 323 def _buildGeneral(self): … … 817 814 updateURLBox.pack_start(self._updateURL, True, True, 4) 818 815 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 825 816 return mainAlignment 826 817
Note:
See TracChangeset
for help on using the changeset viewer.