diff --git a/lib/solaar/ui/pair_window.py b/lib/solaar/ui/pair_window.py index bf2b02ba..1d26a480 100644 --- a/lib/solaar/ui/pair_window.py +++ b/lib/solaar/ui/pair_window.py @@ -81,6 +81,7 @@ def _check_lock_state(assistant, receiver, count=2): return False if receiver.status.new_device: + receiver.remaining_pairings(False) # Update remaining pairings device, receiver.status.new_device = receiver.status.new_device, None _pairing_succeeded(assistant, receiver, device) return False diff --git a/lib/solaar/ui/window.py b/lib/solaar/ui/window.py index 4a2a7bf6..366773af 100644 --- a/lib/solaar/ui/window.py +++ b/lib/solaar/ui/window.py @@ -630,7 +630,7 @@ def _update_receiver_panel(receiver, panel, buttons, full=False): } elif devices_count > 0: paired_text += '\n\n%s' % _('Only one device can be paired to this receiver.') - pairings = receiver.remaining_pairings(False) + pairings = receiver.remaining_pairings() if (pairings is not None and pairings >= 0): paired_text += '\n%s' % ( ngettext('This receiver has %d pairing remaining.', 'This receiver has %d pairings remaining.', pairings) %