fix(ags): fix issues with hover on network item
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-20 20:50:07 -05:00
parent 85348d1a6c
commit d223d18842

View file

@ -29,20 +29,24 @@ export default () => {
return ( return (
<box> <box>
{/* Make sure the AP is there before binding to it */} {/* Make sure the AP is there before binding to it */}
{bind(Wifi, 'accessPoints').as((aps) => aps.length !== 0 && ( {bind(Wifi, 'accessPoints').as((aps) => {
<> if (aps.length === 0) { return; }
<icon icon={bind(Wifi, 'iconName')} />
<revealer return (
revealChild={bind(Hovered)} <>
transitionType={Gtk.RevealerTransitionType.SLIDE_LEFT} <icon icon={bind(Wifi, 'iconName')} />
>
{bind(Wifi, 'activeAccessPoint').as((ap) => ap && ( <revealer
<label label={bind(ap, 'ssid')} /> revealChild={bind(Hovered)}
))} transitionType={Gtk.RevealerTransitionType.SLIDE_LEFT}
</revealer> >
</> {bind(Wifi, 'activeAccessPoint').as((ap) => ap && (
))} <label label={bind(ap, 'ssid')} />
))}
</revealer>
</>
);
})}
</box> </box>
); );
} }