Skip to content

DeviceManagerWidget: connect to list row activated - #327

Merged
danirabbit merged 1 commit into
masterfrom
danirabbit/devicemanager-listactivate
May 22, 2026
Merged

danirabbit merged 1 commit into
masterfrom
danirabbit/devicemanager-listactivate

Conversation

@danirabbit

Copy link
Copy Markdown
Member

Closes #326

Make sure activating the list item changes the device selection

@danirabbit
danirabbit requested a review from a team May 22, 2026 20:01
@danirabbit

Copy link
Copy Markdown
Member Author

@flodavid sent you an invite to elementary desktop devs :) I think this is probably the more proper solution

Comment on lines 76 to 79
device_item.activated.connect (() => {
pam.set_default_device.begin (device);
update_preferred_devices (device);
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this not redundant now ? Maybe it is useful for keyboard navigation or something

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In gtk4 it's easy to make the radio button invisible to clicks but if we remove it now then the radio button will capture clicks and the list item won't be activated

@flodavid

flodavid commented May 22, 2026

Copy link
Copy Markdown
Contributor

Indeed this seems to be a better solution. I tested it and it works.

@danirabbit
danirabbit merged commit 63a0e6d into master May 22, 2026
4 checks passed
@danirabbit
danirabbit deleted the danirabbit/devicemanager-listactivate branch May 22, 2026 20:21
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.

3 participants