From 4c516129e2b9fc1fff8c7523a1feac4bef22d787 Mon Sep 17 00:00:00 2001 From: Etoh Date: Sat, 3 Jun 2023 17:55:02 +0100 Subject: [PATCH] Update client.py --- syncplay/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syncplay/client.py b/syncplay/client.py index a07965d..b7cb245 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -1956,6 +1956,11 @@ class SyncplayPlaylist(): playlistFile.write(playlistToSave) self._ui.showMessage("Playlist saved as {}".format(path)) # TODO: Move to messages_en + def playlistNeedsRestoring(self, files, username): + if self._client.playlistMayNeedRestoring: + self._client.playlistMayNeedRestoring = False + return self._client.sharedPlaylistIsEnabled() and self._playlist != None and files == [] and username == None and not self._playlistBufferIsFromOldRoom(self._client.userlist.currentUser.room) + def changePlaylist(self, files, username=None, resetIndex=False): if self.playlistNeedsRestoring(files, username): self._ui.showDebugMessage("Restoring playlist on reconnect...")