diff options
| author | Janleyx <242423638+Janleyx@users.noreply.github.com> | 2026-07-20 17:35:23 -0400 |
|---|---|---|
| committer | Janleyx <242423638+Janleyx@users.noreply.github.com> | 2026-07-20 17:35:23 -0400 |
| commit | 1260aa400e6d19e8d1cbc3d887c8ddcff3058be9 (patch) | |
| tree | ee392423063c12f150ef4e2a496c7900a48bfcc2 /src/components/SmartClipboardButton.tsx | |
| parent | ff3213291a56ea8de73335adcceed3962a40114d (diff) | |
| download | decky-lsfg-vk-1260aa400e6d19e8d1cbc3d887c8ddcff3058be9.tar.gz decky-lsfg-vk-1260aa400e6d19e8d1cbc3d887c8ddcff3058be9.zip | |
wrap Armada launch inside lsfg script
Diffstat (limited to 'src/components/SmartClipboardButton.tsx')
| -rw-r--r-- | src/components/SmartClipboardButton.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/SmartClipboardButton.tsx b/src/components/SmartClipboardButton.tsx index 7217e83..c90515a 100644 --- a/src/components/SmartClipboardButton.tsx +++ b/src/components/SmartClipboardButton.tsx @@ -20,11 +20,12 @@ export function SmartClipboardButton() { }, [showSuccess]); const getLaunchOptionText = async (): Promise<string> => { - const result = await getLaunchOption(); - if (!result.launch_option) { - throw new Error("Launch option is unavailable"); + try { + const result = await getLaunchOption(); + return result.launch_option || "~/lsfg %command%"; + } catch (error) { + return "~/lsfg %command%"; } - return result.launch_option; }; const copyToClipboard = async () => { |
