mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
fix the sideright wifi module (#1127)
This commit is contained in:
parent
3955c34129
commit
db4a6d953e
1 changed files with 4 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
})
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue