eric6/VCS/VersionControl.py

changeset 8260
2161475d9639
parent 8240
93b8a353c4bf
child 8273
698ae46f40a4
equal deleted inserted replaced
8259:2bbec88047dd 8260:2161475d9639
712 Public method to start the VCS status monitor thread. 712 Public method to start the VCS status monitor thread.
713 713
714 @param project reference to the project object 714 @param project reference to the project object
715 @return reference to the monitor thread (QThread) 715 @return reference to the monitor thread (QThread)
716 """ 716 """
717 if project.pudata["VCSSTATUSMONITORINTERVAL"]: 717 vcsStatusMonitorInterval = (
718 vcsStatusMonitorInterval = project.pudata[ 718 project.pudata["VCSSTATUSMONITORINTERVAL"]
719 "VCSSTATUSMONITORINTERVAL"] 719 if project.pudata["VCSSTATUSMONITORINTERVAL"] else
720 else: 720 Preferences.getVCS("StatusMonitorInterval")
721 vcsStatusMonitorInterval = Preferences.getVCS( 721 )
722 "StatusMonitorInterval")
723 if vcsStatusMonitorInterval > 0: 722 if vcsStatusMonitorInterval > 0:
724 self.statusMonitorThread = self._createStatusMonitorThread( 723 self.statusMonitorThread = self._createStatusMonitorThread(
725 vcsStatusMonitorInterval, project) 724 vcsStatusMonitorInterval, project)
726 if self.statusMonitorThread is not None: 725 if self.statusMonitorThread is not None:
727 self.statusMonitorThread.vcsStatusMonitorData.connect( 726 self.statusMonitorThread.vcsStatusMonitorData.connect(

eric ide

mercurial