diff --git a/ags/widget/bar/Apps.tsx b/ags/widget/bar/Apps.tsx index 56553fa..92f1abd 100644 --- a/ags/widget/bar/Apps.tsx +++ b/ags/widget/bar/Apps.tsx @@ -5,12 +5,8 @@ import { tr } from "../../i18n/intl"; export const Apps = () => - `apps ${Object.hasOwn(openWindows, "apps-window") ? "open" : ""}` - )} $={(self) => { - const conns: Array = [ - self.connect("clicked", (_) => Windows.getDefault().open("apps-window")), - self.connect("destroy", (_) => conns.forEach(id => self.disconnect(id))) - ]; - }} iconName={"applications-other-symbolic"} halign={Gtk.Align.CENTER} - hexpand={true} tooltipText={tr("apps")} + `apps ${Object.hasOwn(openWindows, "apps-window") ? "open" : ""}` + )} iconName={"applications-other-symbolic"} halign={Gtk.Align.CENTER} + hexpand tooltipText={tr("apps")} onClicked={() => + Windows.getDefault().open("apps-window")} />;