From d76f7fadb2d562e94f8d2027242daf6d9d8f6377 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Fri, 22 Oct 2021 17:43:47 +0300 Subject: [PATCH] Debug 2210211742: When mixing songs they now are mixing in playLIST window Updating deletion window when deleting song from pl --- MultiMate_Player.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MultiMate_Player.py b/MultiMate_Player.py index bca7530..71fcd2f 100644 --- a/MultiMate_Player.py +++ b/MultiMate_Player.py @@ -915,9 +915,9 @@ def getplaylist(): newindex = 0 playlist = readpl(ui.playlistsComboBox.currentText()) ui.songList.clear() - for item in list(playlist): - ui.songList.append(str(playlist[item]['author'] + " - " + playlist[item]['name'])) listplaylist = list(playlist) + for item in listplaylist: + ui.songList.append(str(playlist[item]['author'] + " - " + playlist[item]['name'])) def playallpl(index=0): global listplaylist @@ -982,13 +982,16 @@ def delSongFromPl(): json.dump(playlist, playlistfile, indent=3, ensure_ascii=False) playlistfile.close() + generateDeletionList() getplaylist() def mixPlaylist(): global listplaylist try: random.shuffle(listplaylist) - print("Mixed!") + ui.songList.clear() + for item in listplaylist: + ui.songList.append(str(playlist[item]['author'] + " - " + playlist[item]['name'])) except: pass