Fixed: Revert bug introduced in playSound
This commit is contained in:
parent
86a7311a78
commit
953695f2f1
|
@ -1385,7 +1385,8 @@ class MyForm(settingsmixin.SMainWindow): # pylint: disable=too-many-public-meth
|
|||
# elapsed time since the last sound was played
|
||||
dt = datetime.now() - self.lastSoundTime
|
||||
# suppress sounds which are more frequent than the threshold
|
||||
if not dt.total_seconds() < self.maxSoundFrequencySec:
|
||||
if dt.total_seconds() < self.maxSoundFrequencySec:
|
||||
return
|
||||
|
||||
# the sound is for an address which exists in the address book
|
||||
if category is sound.SOUND_KNOWN:
|
||||
|
|
Reference in New Issue
Block a user