diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-01 16:48:41 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-01 16:48:41 +1100 |
| commit | 8d3cf6b6a3986aa72ae14cc9528584f89ff7d371 (patch) | |
| tree | ef30e9592ebbb6eaf5d81764c6dd562d75795d5d /src | |
| parent | thumbnailer: use png (diff) | |
| download | caelestia-shell-8d3cf6b6a3986aa72ae14cc9528584f89ff7d371.tar.gz caelestia-shell-8d3cf6b6a3986aa72ae14cc9528584f89ff7d371.tar.bz2 caelestia-shell-8d3cf6b6a3986aa72ae14cc9528584f89ff7d371.zip | |
launcher: hide todo action if tod not installed
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/launcher/actions.tsx | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modules/launcher/actions.tsx b/src/modules/launcher/actions.tsx index e99c720..03db28b 100644 --- a/src/modules/launcher/actions.tsx +++ b/src/modules/launcher/actions.tsx @@ -122,21 +122,6 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({ // If no args, autocomplete cmd if (args.length === 0) return autocomplete(entry, "todo"); - // If tod not installed, notify - if (!GLib.find_program_in_path("tod")) { - notify({ - summary: "Tod not installed", - body: "The launcher todo subcommand requires `tod`. Install it with `yay -S tod-bin`", - icon: "dialog-warning-symbolic", - urgency: "critical", - actions: { - Install: () => execAsync("uwsm app -T -- yay -S tod-bin").catch(console.error), - }, - }); - close(); - return; - } - // If tod not configured, notify let token = null; try { @@ -172,6 +157,7 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({ close(); }, + available: () => !!GLib.find_program_in_path("tod"), }, reload: { icon: "refresh", |