mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 17:04:33 +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
|
self._words = wc
|
||||||
if self.isLocked():
|
if self.isLocked():
|
||||||
self.updateBtnText()
|
self.updateBtnText()
|
||||||
if self._words >= self._target:
|
if self._target and self._words >= self._target:
|
||||||
self.unlock()
|
self.unlock()
|
||||||
|
|
||||||
def updateBtnText(self):
|
def updateBtnText(self):
|
||||||
|
|
Loading…
Reference in a new issue