Plugins/VcsPlugins/vcsMercurial/ConfigurationPage/MercurialPage.py

changeset 181
4af57f97c1bc
parent 178
dd9f0bca5e2f
child 219
0553aa793753
equal deleted inserted replaced
180:40ac468c2558 181:4af57f97c1bc
31 self.__plugin = plugin 31 self.__plugin = plugin
32 32
33 # set initial values 33 # set initial values
34 self.logSpinBox.setValue(self.__plugin.getPreferences("LogLimit")) 34 self.logSpinBox.setValue(self.__plugin.getPreferences("LogLimit"))
35 self.commitSpinBox.setValue(self.__plugin.getPreferences("CommitMessages")) 35 self.commitSpinBox.setValue(self.__plugin.getPreferences("CommitMessages"))
36 self.logBrowserCheckBox.setChecked(self.__plugin.getPreferences("UseLogBrowser"))
36 37
37 def save(self): 38 def save(self):
38 """ 39 """
39 Public slot to save the Mercurial configuration. 40 Public slot to save the Mercurial configuration.
40 """ 41 """
41 self.__plugin.setPreferences("LogLimit", self.logSpinBox.value()) 42 self.__plugin.setPreferences("LogLimit", self.logSpinBox.value())
42 self.__plugin.setPreferences("CommitMessages", self.commitSpinBox.value()) 43 self.__plugin.setPreferences("CommitMessages", self.commitSpinBox.value())
44 self.__plugin.setPreferences("UseLogBrowser", self.logBrowserCheckBox.isChecked())
43 45
44 @pyqtSlot() 46 @pyqtSlot()
45 def on_configButton_clicked(self): 47 def on_configButton_clicked(self):
46 """ 48 """
47 Private slot to edit the (per user) Mercurial config file. 49 Private slot to edit the (per user) Mercurial config file.

eric ide

mercurial