Merge branch 'icon-for-audio-files' into 'master'

changed so audio files are correctly identified

See merge request openlp/openlp!307
This commit is contained in:
Tomas Groth 2021-03-08 21:15:45 +00:00
commit 819353b897
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ class MediaMediaItem(MediaManagerItem, RegistryProperties):
# Normal media file handling.
file_name = os.path.split(track_str)[1]
item_name = QtWidgets.QListWidgetItem(file_name)
search = file_name.split('.')[-1].lower()
search = "*." + file_name.split('.')[-1].lower()
if search in AUDIO_EXT:
item_name.setIcon(UiIcons().audio)
else: