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:
Håkon J D Johnsen 2019-11-29 21:31:27 +01:00
parent 419456eacd
commit 9be993c76d

View File

@ -1375,7 +1375,7 @@ where id in %s""" % ids2str(sf))
elapMS = int((time.time() - self._lastPreviewRender)*1000)
if elapMS < 500:
self._previewTimer = self.mw.progress.timer(
500-elapMS, lambda: self._renderScheduledPreview(), False)
500-elapMS, self._renderScheduledPreview, False)
else:
self._renderScheduledPreview()