This commit is contained in:
Damocles 2026-04-12 18:44:27 +02:00
parent 21f96dc68e
commit b06e3582ff
23 changed files with 597 additions and 197 deletions

View file

@ -10,7 +10,8 @@ M.BarSection {
const parts = [];
if (root.state === "wifi") {
parts.push("WiFi: " + root.essid);
if (root.signal) parts.push("Signal: " + root.signal + "%");
if (root.signal)
parts.push("Signal: " + root.signal + "%");
} else if (root.state === "eth") {
parts.push("Ethernet");
} else if (root.state === "linked") {
@ -18,8 +19,10 @@ M.BarSection {
} else {
return "Disconnected";
}
if (root.ipAddr) parts.push("IP: " + root.ipAddr);
if (root.ifname) parts.push("Interface: " + root.ifname);
if (root.ipAddr)
parts.push("IP: " + root.ipAddr);
if (root.ifname)
parts.push("Interface: " + root.ifname);
return parts.join("\n");
}
@ -96,7 +99,10 @@ M.BarSection {
TapHandler {
cursorShape: Qt.PointingHandCursor
onTapped: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
onTapped: {
menuLoader.active = !menuLoader.active;
M.FlyoutState.visible = false;
}
}
Loader {