MCPcopy Create free account
hub / github.com/Syncplay/syncplay / _isTryingToChangeToCurrentFile

Method _isTryingToChangeToCurrentFile

syncplay/ui/gui.py:888–893  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

886 self._syncplayClient.ui.showErrorMessage(getMessage("cannot-find-file-for-playlist-switch-error").format(filename))
887
888 def _isTryingToChangeToCurrentFile(self, filename):
889 if self._syncplayClient.userlist.currentUser.file and filename == self._syncplayClient.userlist.currentUser.file["name"]:
890 self.showDebugMessage("File change request ignored (Syncplay should not be asked to change to current filename)")
891 return True
892 else:
893 return False
894
895 def roomClicked(self, item):
896 username = item.sibling(item.row(), 0).data()

Callers 2

playlistItemClickedMethod · 0.95
roomClickedMethod · 0.95

Calls 1

showDebugMessageMethod · 0.95

Tested by

no test coverage detected