fix: accept the release .sig when installing a plugin from a file

This commit is contained in:
LukeGus committed 2026-10-29 14:36:01 -05:00
1 parent 3def536dcc
commit b32203d19b
7 files changed
+146 -17

No files matched your search

+9 -3
View File
@@ -333,11 +333,17 @@ export function usePluginsManager() {
[run, t, failToast],
);
/** Reads a picked .tmxplug and asks for consent before anything loads. */
/**
* Reads a picked .tmxplug, with its .sig when one was picked too, and asks
* for consent before anything loads.
*/
const requestUpload = useCallback(
async (file: File) => {
async (file: File, signatureFile?: File) => {
try {
const preview = await uploadPlugin(file);
const preview = await uploadPlugin(
file,
signatureFile ? await signatureFile.text() : undefined,
);
setConsent({
plugin: uploadEntry(preview),
mode: "upload",