eric6/VCS/VersionControl.py

changeset 8260
2161475d9639
parent 8240
93b8a353c4bf
child 8273
698ae46f40a4
--- 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)

eric ide

mercurial