elementary / switchboard-plug-network

Switchboard Network Plug
GNU General Public License v3.0
20 stars 25 forks source link

Auto select active network #407

Closed vjr closed 1 month ago

vjr commented 1 month ago

Automatically select the first device which is in the activated state.

I typically use the wifi connection on my laptop which also has ethernet, as would most folks.

Whenever I open the networking plug, the first device (wired) is pre-selected and I have to do an extra click to select the wifi device to view or make changes.

Now, the wifi gets pre-selected instead, when opening the plug:

network

If both (or neither) wired and (nor) wireless are activated, then the first (wired) is pre-selected, preserving the current (old) behaviour.

Also, while the plug is open, toggling devices (wired, wireless) updates the selected device. edit: No longer auto switch while plug is already open.

vjr commented 1 month ago

I actually agree with you @zeebok so I will remove that connect_after () line so it does not update when the plug is open.