diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-07-21 13:50:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-21 13:50:23 -0400 |
| commit | b0621d15c675b7b8c1615b0699cc85ea1430a728 (patch) | |
| tree | 01f555d9b592be219da5a1da6a70950f11c7cdc0 /src/components/FGModInstallerSection.tsx | |
| parent | 9573344450de451b8f9c7295c11318010d67f1d5 (diff) | |
| download | Decky-Framegen-b0621d15c675b7b8c1615b0699cc85ea1430a728.tar.gz Decky-Framegen-b0621d15c675b7b8c1615b0699cc85ea1430a728.zip | |
* hooking clipboard automation button, hide plugin wiki for now
* add direct copy to clip buttons for patch and unpatch
Diffstat (limited to 'src/components/FGModInstallerSection.tsx')
| -rw-r--r-- | src/components/FGModInstallerSection.tsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/FGModInstallerSection.tsx b/src/components/FGModInstallerSection.tsx index 1e347c0..6777301 100644 --- a/src/components/FGModInstallerSection.tsx +++ b/src/components/FGModInstallerSection.tsx @@ -2,6 +2,7 @@ import { useState, useEffect } from "react"; import { PanelSection, PanelSectionRow, ButtonItem } from "@decky/ui"; import { runInstallFGMod, runUninstallFGMod } from "../api"; import { OperationResult } from "./ResultDisplay"; +import { SmartClipboardButton } from "./SmartClipboardButton"; import { createAutoCleanupTimer } from "../utils"; import { TIMEOUTS, MESSAGES, STYLES } from "../utils/constants"; @@ -98,6 +99,22 @@ export function FGModInstallerSection({ pathExists, setPathExists }: FGModInstal </div> </PanelSectionRow> ) : null} + + {pathExists === true ? ( + <SmartClipboardButton + command="~/fgmod/fgmod %command%" + buttonText="Copy Patch Command" + successMessage="Patch command ready to paste" + /> + ) : null} + + {pathExists === true ? ( + <SmartClipboardButton + command="~/fgmod/fgmod-uninstaller.sh %command%" + buttonText="Copy Unpatch Command" + successMessage="Unpatch command ready to paste" + /> + ) : null} </PanelSection> ); } |
