mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 02:23:23 +00:00
feat: show ethernet icon if ethernet is connected
Closes https://github.com/noctalia-dev/noctalia-shell/issues/115
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user