fix the sideright wifi module (#1127)

This commit is contained in:
Satoxyan 2025-03-04 11:58:18 +07:00
parent 3955c34129
commit db4a6d953e

View file

@ -142,8 +142,10 @@ const CurrentNetwork = () => {
onAccept: (self) => {
authLock = false;
networkAuth.revealChild = false;
execAsync(`nmcli device wifi connect '${connectAttempt}' password '${self.text}'`)
.catch(print);
execAsync(['nmcli', 'connection', 'delete', connectAttempt])
.catch(print)
.then(() => execAsync(['nmcli', 'device', 'wifi', 'connect', connectAttempt, 'password', self.text])
.catch(print));
}
})
]