mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
Fixes #119: Distraction free mode crashes with time target
This commit is contained in:
parent
fb9eb479f8
commit
35bb0f7cfe
|
@ -79,7 +79,7 @@ class locker(QWidget, Ui_locker):
|
|||
self._words = wc
|
||||
if self.isLocked():
|
||||
self.updateBtnText()
|
||||
if self._words >= self._target:
|
||||
if self._target and self._words >= self._target:
|
||||
self.unlock()
|
||||
|
||||
def updateBtnText(self):
|
||||
|
|
Loading…
Reference in a new issue