fixed CQ for bitmessageqt.sound module
This commit is contained in:
parent
f03bdfb329
commit
277549cff1
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user