Plugins/VcsPlugins/vcsMercurial/ConfigurationPage/MercurialPage.py

changeset 219
0553aa793753
parent 181
4af57f97c1bc
child 791
9ec2ac20e54e
equal deleted inserted replaced
218:633aa53976ae 219:0553aa793753
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 self.logBrowserCheckBox.setChecked(self.__plugin.getPreferences("UseLogBrowser"))
37 self.pullUpdateCheckBox.setChecked(self.__plugin.getPreferences("PullUpdate"))
37 38
38 def save(self): 39 def save(self):
39 """ 40 """
40 Public slot to save the Mercurial configuration. 41 Public slot to save the Mercurial configuration.
41 """ 42 """
42 self.__plugin.setPreferences("LogLimit", self.logSpinBox.value()) 43 self.__plugin.setPreferences("LogLimit", self.logSpinBox.value())
43 self.__plugin.setPreferences("CommitMessages", self.commitSpinBox.value()) 44 self.__plugin.setPreferences("CommitMessages", self.commitSpinBox.value())
44 self.__plugin.setPreferences("UseLogBrowser", self.logBrowserCheckBox.isChecked()) 45 self.__plugin.setPreferences("UseLogBrowser", self.logBrowserCheckBox.isChecked())
46 self.__plugin.setPreferences("PullUpdate", self.pullUpdateCheckBox.isChecked())
45 47
46 @pyqtSlot() 48 @pyqtSlot()
47 def on_configButton_clicked(self): 49 def on_configButton_clicked(self):
48 """ 50 """
49 Private slot to edit the (per user) Mercurial config file. 51 Private slot to edit the (per user) Mercurial config file.

eric ide

mercurial