forked from Shinonome/dots-hyprland
fix the sideright wifi module (#1127)
This commit is contained in:
@@ -142,8 +142,10 @@ const CurrentNetwork = () => {
|
|||||||
onAccept: (self) => {
|
onAccept: (self) => {
|
||||||
authLock = false;
|
authLock = false;
|
||||||
networkAuth.revealChild = false;
|
networkAuth.revealChild = false;
|
||||||
execAsync(`nmcli device wifi connect '${connectAttempt}' password '${self.text}'`)
|
execAsync(['nmcli', 'connection', 'delete', connectAttempt])
|
||||||
.catch(print);
|
.catch(print)
|
||||||
|
.then(() => execAsync(['nmcli', 'device', 'wifi', 'connect', connectAttempt, 'password', self.text])
|
||||||
|
.catch(print));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user