fix for starting the application with no receiver connected

This commit is contained in:
Daniel Pavel 2012-11-02 22:07:35 +02:00
parent 79018bac2d
commit c6d1ab4526
2 changed files with 4 additions and 4 deletions

View File

@ -120,8 +120,8 @@ class DeviceInfo(_api.PairedDevice):
self.features = _FeaturesArray(self)
# read them now, otherwise it it temporarily hang the UI
if status >= STATUS.CONNECTED:
n, k, s, f = self.name, self.kind, self.serial, self.firmware
# if status >= STATUS.CONNECTED:
# n, k, s, f = self.name, self.kind, self.serial, self.firmware
@property
def receiver(self):
@ -381,7 +381,7 @@ class ReceiverListener(_EventsListener):
class _DUMMY_RECEIVER(object):
__slots__ = ['name', 'max_devices', 'status', 'status_text', 'devices']
name = _api.Receiver.name
name = kind = _api.Receiver.name
max_devices = _api.Receiver.max_devices
status = STATUS.UNAVAILABLE
status_text = _RECEIVER_STATUS_NAME[STATUS.UNAVAILABLE]

View File

@ -87,7 +87,7 @@ if __name__ == '__main__':
if listener is None:
pairing.state = None
if notify_missing:
status_changed(DUMMY, True)
status_changed(DUMMY, None, True)
notify_missing = False
return retry