[AGS] Potential fix for network crash

This commit is contained in:
Janis Hutz 2025-04-26 13:03:38 +02:00
parent a8e0c903c4
commit d72c4fdf86

View File

@ -29,7 +29,10 @@ const Network = () => {
)}
cssClasses={["title-2"]}
></label>
<label
<box child=
{bind(net, 'wired').as(v => {
if (v) {
return <label
label={bind(net.wired, "state").as(state => {
if (state === STATE.ACTIVATED) {
return (
@ -52,6 +55,10 @@ const Network = () => {
})}
visible={bind(net.wifi, "enabled").as(v => !v)}
></label>
} else {
return <label label={"State unavailable"}></label>
}
})}></box>
<label
label={bind(net.wifi, "state").as(state => {
if (state === STATE.ACTIVATED) {