From 14fd8efc9e508204d1c03d07d4d44300df77991b Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Fri, 6 Jan 2023 09:35:25 -0500 Subject: [PATCH] ui: mention compatability and non-connection in pairing window --- lib/solaar/ui/pair_window.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/solaar/ui/pair_window.py b/lib/solaar/ui/pair_window.py index 1d26a480..2ee4303e 100644 --- a/lib/solaar/ui/pair_window.py +++ b/lib/solaar/ui/pair_window.py @@ -260,12 +260,22 @@ def create(receiver): assistant.set_resizable(False) assistant.set_role('pair-device') + if receiver.receiver_kind == 'unifying': + page_text = _('Unifying receivers are only compatible with Unifying devices.') + elif receiver.receiver_kind == 'bolt': + page_text = _('Bolt receivers are only compatible with Bolt devices.') + else: + page_text = _('Other receivers are only compatible with a few devices.') + page_text += '\n' + page_text += _('The device must not be paired with a nearby powered-on receiver.') + page_text += '\n\n' + if receiver.receiver_kind == 'bolt': - page_text = _('Press a pairing button or key until the pairing light flashes quickly.') + page_text += _('Press a pairing button or key until the pairing light flashes quickly.') page_text += '\n' page_text += _('You may have to first turn the device off and on again.') else: - page_text = _('Turn on the device you want to pair.') + page_text += _('Turn on the device you want to pair.') page_text += '\n' page_text += _('If the device is already turned on, turn it off and on again.') if receiver.remaining_pairings() and receiver.remaining_pairings() >= 0: