mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 23:01:02 +00:00
feat: add functionality to manage download queue with new actions and translations
This commit is contained in:
@@ -27,6 +27,8 @@ contextBridge.exposeInMainWorld("electron", {
|
||||
/* Torrenting */
|
||||
startGameDownload: (payload: StartGameDownloadPayload) =>
|
||||
ipcRenderer.invoke("startGameDownload", payload),
|
||||
addGameToQueue: (payload: StartGameDownloadPayload) =>
|
||||
ipcRenderer.invoke("addGameToQueue", payload),
|
||||
cancelGameDownload: (shop: GameShop, objectId: string) =>
|
||||
ipcRenderer.invoke("cancelGameDownload", shop, objectId),
|
||||
pauseGameDownload: (shop: GameShop, objectId: string) =>
|
||||
@@ -37,6 +39,17 @@ contextBridge.exposeInMainWorld("electron", {
|
||||
ipcRenderer.invoke("pauseGameSeed", shop, objectId),
|
||||
resumeGameSeed: (shop: GameShop, objectId: string) =>
|
||||
ipcRenderer.invoke("resumeGameSeed", shop, objectId),
|
||||
updateDownloadQueuePosition: (
|
||||
shop: GameShop,
|
||||
objectId: string,
|
||||
direction: "up" | "down"
|
||||
) =>
|
||||
ipcRenderer.invoke(
|
||||
"updateDownloadQueuePosition",
|
||||
shop,
|
||||
objectId,
|
||||
direction
|
||||
),
|
||||
onDownloadProgress: (cb: (value: DownloadProgress | null) => void) => {
|
||||
const listener = (
|
||||
_event: Electron.IpcRendererEvent,
|
||||
|
||||
Reference in New Issue
Block a user