fixed CQ for bitmessageqt.sound module
This commit is contained in:
parent
f03bdfb329
commit
277549cff1
|
@ -1,4 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
"""Sound Module"""
|
||||||
|
|
||||||
# sound type constants
|
# sound type constants
|
||||||
SOUND_NONE = 0
|
SOUND_NONE = 0
|
||||||
|
@ -12,10 +13,12 @@ SOUND_CONNECTION_GREEN = 5
|
||||||
# returns true if the given sound category is a connection sound
|
# returns true if the given sound category is a connection sound
|
||||||
# rather than a received message sound
|
# rather than a received message sound
|
||||||
def is_connection_sound(category):
|
def is_connection_sound(category):
|
||||||
|
"""Check if sound type is related to connectivity"""
|
||||||
return category in (
|
return category in (
|
||||||
SOUND_CONNECTED,
|
SOUND_CONNECTED,
|
||||||
SOUND_DISCONNECTED,
|
SOUND_DISCONNECTED,
|
||||||
SOUND_CONNECTION_GREEN
|
SOUND_CONNECTION_GREEN
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
extensions = ('wav', 'mp3', 'oga')
|
extensions = ('wav', 'mp3', 'oga')
|
||||||
|
|
Reference in New Issue
Block a user