mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 08:43:57 +00:00
feat: improving cloud sync manual mapping
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user