From 354c3446deec65e12bbe2b843db32e3d7adb10e3 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sun, 16 Feb 2025 23:11:25 +1100
Subject: launcher: tod not installed notif action

Add install action to tod not installed notification
---
 src/modules/launcher.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/modules/launcher.tsx')

diff --git a/src/modules/launcher.tsx b/src/modules/launcher.tsx
index 5462067..5adc86e 100644
--- a/src/modules/launcher.tsx
+++ b/src/modules/launcher.tsx
@@ -535,6 +535,10 @@ const Results = ({ entry, mode }: { entry: Widget.Entry; mode: Variable<Mode> })
                                         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),
+                                        },
                                     });
                                     return;
                                 }
-- 
cgit v1.2.3-freya

