--- a/eric6/VCS/VersionControl.py Wed Apr 21 19:40:50 2021 +0200 +++ b/eric6/VCS/VersionControl.py Thu Apr 22 18:02:47 2021 +0200 @@ -714,12 +714,11 @@ @param project reference to the project object @return reference to the monitor thread (QThread) """ - if project.pudata["VCSSTATUSMONITORINTERVAL"]: - vcsStatusMonitorInterval = project.pudata[ - "VCSSTATUSMONITORINTERVAL"] - else: - vcsStatusMonitorInterval = Preferences.getVCS( - "StatusMonitorInterval") + vcsStatusMonitorInterval = ( + project.pudata["VCSSTATUSMONITORINTERVAL"] + if project.pudata["VCSSTATUSMONITORINTERVAL"] else + Preferences.getVCS("StatusMonitorInterval") + ) if vcsStatusMonitorInterval > 0: self.statusMonitorThread = self._createStatusMonitorThread( vcsStatusMonitorInterval, project)