feat: show ethernet icon if ethernet is connected
Closes https://github.com/noctalia-dev/noctalia-shell/issues/115
This commit is contained in:
parent
8f951946ea
commit
cd102d894e
2 changed files with 22 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ NIconButton {
|
|||
colorBorderHover: Color.transparent
|
||||
|
||||
icon: {
|
||||
if (NetworkService.ethernet) return "lan"
|
||||
let connected = false
|
||||
let signalStrength = 0
|
||||
for (const net in NetworkService.networks) {
|
||||
|
|
@ -30,7 +31,7 @@ NIconButton {
|
|||
break
|
||||
}
|
||||
}
|
||||
return connected ? NetworkService.signalIcon(signalStrength) : "wifi"
|
||||
return connected ? NetworkService.signalIcon(signalStrength) : "wifi_find"
|
||||
}
|
||||
tooltipText: "WiFi Networks"
|
||||
onClicked: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue