fixed CQ for bitmessageqt.sound module

This commit is contained in:
coolguy-cell 2020-06-09 15:53:18 +05:30
parent f03bdfb329
commit 277549cff1
No known key found for this signature in database
GPG Key ID: CD3A42E1D470AD70

View File

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
"""Sound Module"""
# sound type constants
SOUND_NONE = 0
@ -12,10 +13,12 @@ SOUND_CONNECTION_GREEN = 5
# returns true if the given sound category is a connection sound
# rather than a received message sound
def is_connection_sound(category):
"""Check if sound type is related to connectivity"""
return category in (
SOUND_CONNECTED,
SOUND_DISCONNECTED,
SOUND_CONNECTION_GREEN
)
extensions = ('wav', 'mp3', 'oga')