eric6/VCS/StatusMonitorLed.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7258:aff39db4dacc 7259:7c017076c12e
83 def __checkActions(self): 83 def __checkActions(self):
84 """ 84 """
85 Private method to set the enabled status of the context menu actions. 85 Private method to set the enabled status of the context menu actions.
86 """ 86 """
87 if self.project.pudata["VCSSTATUSMONITORINTERVAL"]: 87 if self.project.pudata["VCSSTATUSMONITORINTERVAL"]:
88 vcsStatusMonitorInterval = \ 88 vcsStatusMonitorInterval = self.project.pudata[
89 self.project.pudata["VCSSTATUSMONITORINTERVAL"] 89 "VCSSTATUSMONITORINTERVAL"]
90 else: 90 else:
91 vcsStatusMonitorInterval = \ 91 vcsStatusMonitorInterval = Preferences.getVCS(
92 Preferences.getVCS("StatusMonitorInterval") 92 "StatusMonitorInterval")
93 self.__checkAct.setEnabled(self.__on) 93 self.__checkAct.setEnabled(self.__on)
94 self.__intervalAct.setEnabled(self.__on) 94 self.__intervalAct.setEnabled(self.__on)
95 self.__onAct.setEnabled( 95 self.__onAct.setEnabled(
96 (not self.__on) and vcsStatusMonitorInterval > 0) 96 (not self.__on) and vcsStatusMonitorInterval > 0)
97 self.__offAct.setEnabled(self.__on) 97 self.__offAct.setEnabled(self.__on)

eric ide

mercurial