Fix menu top margin even box

This commit is contained in:
Jas Singh
2024-06-30 22:38:06 -07:00
parent 57b468beb3
commit 8f54a92e80
8 changed files with 66 additions and 42 deletions

View File

@@ -65,6 +65,7 @@ const renderWapStaging = (self, network, staging, connecting) => {
Utils.notify({
summary: "Network",
body: err,
timeout: 5000,
});
})
.then(() => {

View File

@@ -77,6 +77,10 @@ const renderWAPs = (self, network, staging, connecting) => {
children: [
Widget.Button({
on_primary_click: () => {
if (ap.bssid === connecting.value || ap.active) {
return;
}
connecting.value = ap.bssid;
Utils.execAsync(`nmcli device wifi connect ${ap.bssid}`)
.then(() => {
@@ -94,6 +98,7 @@ const renderWAPs = (self, network, staging, connecting) => {
Utils.notify({
summary: "Network",
body: err,
timeout: 5000,
});
}
connecting.value = "";