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

Method addRoomToList

syncplay/ui/gui.py:478–489  ·  view source on GitHub ↗
(self, newRoom=None)

Source from the content-addressed store, hash-verified

476 self.roomsCombobox.setEditText(previousRoomSelection)
477
478 def addRoomToList(self, newRoom=None):
479 if newRoom is None:
480 newRoom = self.roomsCombobox.currentText()
481 if not newRoom:
482 return
483 roomList = self.config['roomList']
484 if newRoom not in roomList:
485 roomList.append(newRoom)
486 self.config['roomList'] = roomList
487 roomList = sorted(roomList)
488 self._syncplayClient.setRoomList(roomList)
489 self.relistRoomList(roomList)
490
491 def addClient(self, client):
492 self._syncplayClient = client

Callers 2

updateRoomNameMethod · 0.95
joinRoomMethod · 0.95

Calls 2

relistRoomListMethod · 0.95
setRoomListMethod · 0.80

Tested by

no test coverage detected