💥 fix: can't convert non-null pointer to js value

Thanks aylur!!
This commit is contained in:
retrozinndev
2025-08-11 12:38:59 -03:00
parent e82eebca91
commit 7bd159ff10
13 changed files with 120 additions and 61 deletions
+5 -3
View File
@@ -7,6 +7,7 @@ import { timeout } from "ags/time";
import AstalHyprland from "gi://AstalHyprland";
import AstalIO from "gi://AstalIO";
import { Shell } from "../app";
export namespace Runner {
@@ -21,7 +22,7 @@ export type RunnerProps = {
showResultsPlaceHolderOnStartup?: boolean;
};
type Result = ResultWidgetProps;
export type Result = ResultWidgetProps;
export interface Plugin {
/** prefix to call the plugin. if undefined, will be triggered like applications plugin */
@@ -243,8 +244,9 @@ export function openRunner(props: RunnerProps, placeholders?: Array<Result>): As
<PopupWindow namespace={"runner"} monitor={mon} widthRequest={props.width}
heightRequest={props.height} exclusivity={Astal.Exclusivity.IGNORE} halign={Gtk.Align.CENTER}
marginTop={(AstalHyprland.get_default().get_monitor(mon)?.height / 2) - (props.height! / 2)}
valign={Gtk.Align.START} hexpand orientation={Gtk.Orientation.VERTICAL}
$={() => {
valign={Gtk.Align.START} hexpand orientation={Gtk.Orientation.VERTICAL}
$={(self) => {
self.set_application(Shell.getDefault());
plugins.forEach(plugin =>
plugin.init?.());