From c648667ef35e29c47d9237e135a92f666eee1ee3 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 20 Nov 2024 12:29:06 -0500 Subject: [PATCH] fix(ags): prevent activeAccessPoint from being null --- .../ags/config/widgets/bar/items/network.tsx | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/nixosModules/ags/config/widgets/bar/items/network.tsx b/nixosModules/ags/config/widgets/bar/items/network.tsx index 513475c3..84777a82 100644 --- a/nixosModules/ags/config/widgets/bar/items/network.tsx +++ b/nixosModules/ags/config/widgets/bar/items/network.tsx @@ -2,11 +2,12 @@ import { bind, Variable } from 'astal'; import { Gtk } from 'astal/gtk3'; import AstalNetwork from 'gi://AstalNetwork'; -const Network = AstalNetwork.get_default(); export default () => { const Hovered = Variable(false); + // TODO: do this everywhere else + const network = AstalNetwork.get_default(); return (