feat: improving cloud sync manual mapping

This commit is contained in:
Chubby Granny Chaser 2024-10-22 13:34:34 +01:00
parent 7de6e96f63
commit bfcf8178d8
No known key found for this signature in database
15 changed files with 164 additions and 132 deletions

View file

@ -178,6 +178,11 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("getGameBackupPreview", objectId, shop),
deleteGameArtifact: (gameArtifactId: string) =>
ipcRenderer.invoke("deleteGameArtifact", gameArtifactId),
selectGameBackupPath: (
shop: GameShop,
objectId: string,
backupPath: string | null
) => ipcRenderer.invoke("selectGameBackupPath", shop, objectId, backupPath),
onUploadComplete: (objectId: string, shop: GameShop, cb: () => void) => {
const listener = (_event: Electron.IpcRendererEvent) => cb();
ipcRenderer.on(`on-upload-complete-${objectId}-${shop}`, listener);