Skip to content

Commit

Permalink
fix(app-launcher): propagate context to launched apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherall committed Jan 4, 2025
1 parent 57fb593 commit ec9d2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/menus/apps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface ApplicationItemProps {

const ApplicationItem = ({ app, onLaunched }: ApplicationItemProps): JSX.Element => {
return (
<button className="notification-card" halign={Gtk.Align.FILL} valign={Gtk.Align.START} onClick={() => { launchApp(app); onLaunched?.() }}>
<button className="notification-card" halign={Gtk.Align.FILL} valign={Gtk.Align.START} onClick={() => { app.launch(); onLaunched?.() }}>
<box spacing={5}>
<icon className="notification-card-image icon" margin={5} halign={Gtk.Align.CENTER} valign={Gtk.Align.CENTER} vexpand={false} icon={icon(app.iconName)} />
<label halign={Gtk.Align.START} valign={Gtk.Align.CENTER} label={app.name} hexpand vexpand truncate wrap />
Expand Down Expand Up @@ -93,7 +93,7 @@ const ApplicationLauncher = ({ visible, onLaunched }: ApplicationLauncherProps):
const onFilterReturn = () => {
const first = list.get()[0]
if (!first) return;
launchApp(first)
first.launch()
onLaunched?.()
}

Expand Down

0 comments on commit ec9d2ec

Please sign in to comment.