remove ws, fmt
This commit is contained in:
parent
5316f40967
commit
cd45c2d9cf
17 changed files with 96 additions and 97 deletions
|
|
@ -26,9 +26,12 @@ Row {
|
|||
const parts = line.split(":");
|
||||
root.essid = parts[0] || "";
|
||||
root.ifname = parts[2] || "";
|
||||
if ((parts[1] || "").includes("wireless")) root.state = "wifi";
|
||||
else if (parts[0] === "linked") root.state = "linked";
|
||||
else root.state = "eth";
|
||||
if ((parts[1] || "").includes("wireless"))
|
||||
root.state = "wifi";
|
||||
else if (parts[0] === "linked")
|
||||
root.state = "linked";
|
||||
else
|
||||
root.state = "eth";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -41,9 +44,12 @@ Row {
|
|||
|
||||
Text {
|
||||
text: {
|
||||
if (root.state === "wifi") return " " + root.essid;
|
||||
if (root.state === "eth") return "";
|
||||
if (root.state === "linked") return "";
|
||||
if (root.state === "wifi")
|
||||
return " " + root.essid;
|
||||
if (root.state === "eth")
|
||||
return "";
|
||||
if (root.state === "linked")
|
||||
return "";
|
||||
return "";
|
||||
}
|
||||
color: M.Theme.base05
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue