(self, newRoom=None)
| 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 |
no test coverage detected