Skip to content

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented Jun 18, 2025

Fixes #200

  • Make sure we connect to response when showing pincodes and passkeys
  • Send dialog ACCEPT if the device becomes paired. This closes the dialog if a pin or passkey is accepted, for example

@danirabbit danirabbit requested a review from a team June 18, 2025 18:12
// Close when pins or passkeys are accepted for example
((DBusProxy)device).g_properties_changed.connect ((changed, invalid) => {
var paired = changed.lookup_value ("Paired", new VariantType ("b"));
if (paired != null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conditional can be simplified with only one if like `if (paired != null && device.paired).

@danirabbit danirabbit merged commit b414525 into main Jun 18, 2025
4 checks passed
@danirabbit danirabbit deleted the danirabbit/pairdialog-closeonpair branch June 18, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The buttons of the Bluetooth password confirmation window do not work

3 participants