mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add ablity to pause and resume the seeding process
This commit is contained in:
parent
c556a00e4a
commit
b32952f076
11 changed files with 120 additions and 0 deletions
|
@ -26,6 +26,10 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
ipcRenderer.invoke("pauseGameDownload", gameId),
|
||||
resumeGameDownload: (gameId: number) =>
|
||||
ipcRenderer.invoke("resumeGameDownload", gameId),
|
||||
pauseGameSeed: (gameId: number) =>
|
||||
ipcRenderer.invoke("pauseGameSeed", gameId),
|
||||
resumeGameSeed: (gameId: number) =>
|
||||
ipcRenderer.invoke("resumeGameSeed", gameId),
|
||||
onDownloadProgress: (cb: (value: DownloadProgress) => void) => {
|
||||
const listener = (
|
||||
_event: Electron.IpcRendererEvent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue