mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: improving cloud sync manual mapping
This commit is contained in:
parent
7de6e96f63
commit
bfcf8178d8
15 changed files with 164 additions and 132 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue