Description
Describe the bug
Desktop with wired and wireless connection always shows wifi connection on bar, which is not connected to an ssid.
To Reproduce
Steps to reproduce the behavior:
System has bridge configured for kvm and may take a few seconds after boot to connect, but basically have a wired network connection active and a wifi adapter that isn't connected to an ssid. The ethernet adapter show as connected and I can also select from all available ssid.
Expected behavior
Show the wired adapter as primary which seems like that is supposed to happen here: https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/components/bar/modules/network/index.tsx#L15
Desktop (please complete the following information):
- Distribution: Arco Linux (Arch)
- Window Manager/Desktop Environment: Hyprland
- aur/ags-hyprpanel-git r407.006e954-1 (+3 1.16) (Installed: r505.88609f7-1)
Additional context
Simple python test with astalnetwork showing the desktop nic is primary.
test.py:1: PyGIWarning: AstalNetwork was imported without specifying a version first. Use gi.require_version('AstalNetwork', '0.1') before import to ensure that the right version gets loaded.
from gi.repository import AstalNetwork as Network
None #This is the result for print(network.get_wifi().get_ssid())
gi.FunctionInfo(get_wired, bound=<AstalNetwork.Network object at 0x797789e88180 (AstalNetworkNetwork at 0x5b9c8cff1950)>)
gi.FunctionInfo(get_primary, bound=<AstalNetwork.Network object at 0x797789e88180 (AstalNetworkNetwork at 0x5b9c8cff1950)>)
gi.FunctionInfo(get_icon_name, bound=<AstalNetwork.Wired object at 0x7b378fa642c0 (AstalNetworkWired at 0x61b62519ffe0)>)