forked from Shinonome/dots-hyprland
remove network error notif thingie
This commit is contained in:
@@ -37,13 +37,15 @@ const WifiNetwork = (accessPoint) => {
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
return Button({
|
return Button({
|
||||||
onClicked: accessPoint.active ? () => { } : () => execAsync(`nmcli device wifi connect ${accessPoint.bssid}`).catch(e => {
|
onClicked: accessPoint.active ? () => { } : () => execAsync(`nmcli device wifi connect ${accessPoint.bssid}`)
|
||||||
Utils.notify({
|
// .catch(e => {
|
||||||
summary: "Network",
|
// Utils.notify({
|
||||||
body: e,
|
// summary: "Network",
|
||||||
actions: { "Open network manager": () => execAsync("nm-connection-editor").catch(print) }
|
// body: e,
|
||||||
});
|
// actions: { "Open network manager": () => execAsync("nm-connection-editor").catch(print) }
|
||||||
}).catch(e => console.error(e)),
|
// });
|
||||||
|
// })
|
||||||
|
.catch(print),
|
||||||
child: Box({
|
child: Box({
|
||||||
className: 'sidebar-wifinetworks-network spacing-h-10',
|
className: 'sidebar-wifinetworks-network spacing-h-10',
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user