Revert some timer changes
This commit is contained in:
+4
-10
@@ -63,7 +63,6 @@ class SharedData(QObject):
|
||||
indexCleared = pyqtSignal()
|
||||
indexAvailable = pyqtSignal()
|
||||
mainClockTick = pyqtSignal()
|
||||
slowClockTick = pyqtSignal()
|
||||
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
@@ -81,13 +80,9 @@ class SharedData(QObject):
|
||||
self._idleRefTime = time()
|
||||
self._focusMode = False
|
||||
|
||||
self._fClock = QTimer(self)
|
||||
self._fClock.setInterval(1000)
|
||||
self._fClock.timeout.connect(lambda: self.mainClockTick.emit())
|
||||
|
||||
self._sClock = QTimer(self)
|
||||
self._sClock.setInterval(10000)
|
||||
self._sClock.timeout.connect(lambda: self.slowClockTick.emit())
|
||||
self._clock = QTimer(self)
|
||||
self._clock.setInterval(1000)
|
||||
self._clock.timeout.connect(lambda: self.mainClockTick.emit())
|
||||
|
||||
return
|
||||
|
||||
@@ -168,8 +163,7 @@ class SharedData(QObject):
|
||||
soon as the Main GUI is created to ensure the SHARED singleton
|
||||
has the properties needed for operation.
|
||||
"""
|
||||
self._fClock.start()
|
||||
self._sClock.start()
|
||||
self._clock.start()
|
||||
self._gui = gui
|
||||
self._theme = theme
|
||||
self._resetProject()
|
||||
|
||||
@@ -794,7 +794,11 @@ class _PreviewWidget(QTextBrowser):
|
||||
self._updateDocMargins()
|
||||
self._updateBuildAge()
|
||||
|
||||
SHARED.slowClockTick.connect(self._updateBuildAge)
|
||||
# Age Timer
|
||||
self.ageTimer = QTimer(self)
|
||||
self.ageTimer.setInterval(10000)
|
||||
self.ageTimer.timeout.connect(self._updateBuildAge)
|
||||
self.ageTimer.start()
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user