fixed reading encrypted link status in pairing window

This commit is contained in:
Daniel Pavel 2013-06-21 15:04:06 +02:00
parent 431f1c97cf
commit 3a63c3ad43
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ del getLogger
from . import icons as _icons
from logitech.unifying_receiver.status import KEYS as _K
from logitech.unifying_receiver import status as _status
#
#
@ -149,7 +148,7 @@ def _pairing_succeeded(assistant, receiver, device):
def _check_encrypted(dev):
if assistant.is_drawable():
if device.status.get('encrypted') == False:
if device.status.get(_K.LINK_ENCRYPTED) == False:
hbox.pack_start(Gtk.Image.new_from_icon_name('security-low', Gtk.IconSize.MENU), False, False, 0)
hbox.pack_start(Gtk.Label('The wireless link is not encrypted!'), False, False, 0)
hbox.show_all()