repeating timers would randomly start firing every 100ms indefinitely
This commit is contained in:
parent
7787427a50
commit
4b0f31676c
@ -64,7 +64,7 @@ Your pysqlite2 is too old. Anki will appear frozen during long operations."""
|
||||
def handler():
|
||||
if self.inDB:
|
||||
# retry in 100ms
|
||||
self.timer(100, func, repeat)
|
||||
self.timer(100, func, False)
|
||||
else:
|
||||
func()
|
||||
t = QTimer(self.mw)
|
||||
|
Loading…
Reference in New Issue
Block a user