Remove unnecessary lambda
Changing the signature of _renderScheduledPreview() made the use of a lambda in _renderPreview() unnecessary. Remove it to prevent linting errors.
This commit is contained in:
parent
419456eacd
commit
9be993c76d
@ -1375,7 +1375,7 @@ where id in %s""" % ids2str(sf))
|
|||||||
elapMS = int((time.time() - self._lastPreviewRender)*1000)
|
elapMS = int((time.time() - self._lastPreviewRender)*1000)
|
||||||
if elapMS < 500:
|
if elapMS < 500:
|
||||||
self._previewTimer = self.mw.progress.timer(
|
self._previewTimer = self.mw.progress.timer(
|
||||||
500-elapMS, lambda: self._renderScheduledPreview(), False)
|
500-elapMS, self._renderScheduledPreview, False)
|
||||||
else:
|
else:
|
||||||
self._renderScheduledPreview()
|
self._renderScheduledPreview()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user