Some enhancements to projectors

This commit is contained in:
Raoul Snyman 2017-12-23 14:53:13 -07:00
parent 2fa88b17db
commit 2eb89c8361
2 changed files with 3 additions and 4 deletions

View File

@ -292,8 +292,7 @@ class ProjectorManager(QtWidgets.QWidget, RegistryBase, UiProjectorManager, LogM
self.settings_section = 'projector'
self.projectordb = projectordb
self.projector_list = []
self.pjlink_udp = PJLinkUDP()
self.pjlink_udp.projector_list = self.projector_list
self.pjlink_udp = PJLinkUDP(self.projector_list)
self.source_select_form = None
def bootstrap_initialise(self):

View File

@ -91,11 +91,11 @@ class PJLinkUDP(QtNetwork.QUdpSocket):
'SRCH' # Class 2 (reply is ACKN)
]
def __init__(self, port=PJLINK_PORT):
def __init__(self, projector_list, port=PJLINK_PORT):
"""
Initialize socket
"""
self.projector_list = projector_list
self.port = port