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

Method controllerIdentificationSuccess

syncplay/client.py:1134–1141  ·  view source on GitHub ↗
(self, username, roomname)

Source from the content-addressed store, hash-verified

1132 self.ui.showErrorMessage(getMessage("failed-to-identify-as-controller-notification").format(username))
1133
1134 def controllerIdentificationSuccess(self, username, roomname):
1135 self.userlist.setUserAsController(username)
1136 if self.userlist.isRoomSame(roomname):
1137 hideFromOSD = not constants.SHOW_SAME_ROOM_OSD
1138 self.ui.showMessage(getMessage("authenticated-as-controller-notification").format(username), hideFromOSD)
1139 if username == self.userlist.currentUser.username:
1140 self.storeControlPassword(roomname, self.lastControlPasswordAttempt)
1141 self.ui.userListChange()
1142
1143 def storeControlPassword(self, room, password):
1144 if password:

Callers 1

handleSetMethod · 0.80

Calls 6

storeControlPasswordMethod · 0.95
getMessageFunction · 0.90
setUserAsControllerMethod · 0.80
isRoomSameMethod · 0.80
showMessageMethod · 0.45
userListChangeMethod · 0.45

Tested by

no test coverage detected