From 1f731072ac7e0bef369eedabfb396a41331e6ef2 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Fri, 17 Jan 2025 14:55:50 +1100
Subject: networks: make popup window

---
 src/modules/bar.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/modules/bar.tsx')

diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx
index 0bc4485..24353bd 100644
--- a/src/modules/bar.tsx
+++ b/src/modules/bar.tsx
@@ -219,10 +219,10 @@ const Tray = () => <box className="module tray">{bind(AstalTray.get_default(), "
 
 const Network = () => (
     <button
-        onClick={(_, event) => {
+        onClick={(self, event) => {
             const network = AstalNetwork.get_default();
             if (event.button === Astal.MouseButton.PRIMARY) {
-                // TODO: networks panel
+                togglePopup(self, event, "networks");
             } else if (event.button === Astal.MouseButton.SECONDARY) network.wifi.enabled = !network.wifi.enabled;
             else if (event.button === Astal.MouseButton.MIDDLE)
                 execAsync("uwsm app -- gnome-control-center wifi").catch(() => {
-- 
cgit v1.2.3-freya

