wifi networks: prevent spamming shit-got-destroyed errors

This commit is contained in:
end-4
2025-03-28 22:44:33 +01:00
parent 7fdf7e2190
commit 56da459943
@@ -133,16 +133,16 @@ const CurrentNetwork = () => {
NetResource('arrow_cool_down', `${App.configDir}/scripts/network_scripts/network_bandwidth.py recv`), NetResource('arrow_cool_down', `${App.configDir}/scripts/network_scripts/network_bandwidth.py recv`),
] ]
}); });
const networkStatus = Box({ // const networkStatus = Box({
children: [Label({ // children: [Label({
vpack: 'center', // vpack: 'center',
className: 'txt-subtext', // className: 'txt-subtext',
setup: (self) => self.hook(Network, (self) => { // setup: (self) => self.hook(Network, (self) => {
if (authLock) return; // if (authLock) return;
self.label = Network.wifi.state; // self.label = Network.wifi.state;
}), // }),
})] // })]
}); // });
networkAuthSSID = Label({ networkAuthSSID = Label({
className: 'margin-left-5', className: 'margin-left-5',
hpack: 'start', hpack: 'start',