mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-22 10:23:56 +00:00
"feat: pause seeding if game folder is deleted"
This commit is contained in:
@@ -39,6 +39,11 @@ contextBridge.exposeInMainWorld("electron", {
|
||||
ipcRenderer.on("on-download-progress", listener);
|
||||
return () => ipcRenderer.removeListener("on-download-progress", listener);
|
||||
},
|
||||
onHardDelete: (cb: () => void) => {
|
||||
const listener = (_event: Electron.IpcRendererEvent) => cb();
|
||||
ipcRenderer.on("on-hard-delete", listener);
|
||||
return () => ipcRenderer.removeListener("on-hard-delete", listener);
|
||||
},
|
||||
onSeedingStatus: (cb: (value: SeedingStatus[]) => void) => {
|
||||
const listener = (
|
||||
_event: Electron.IpcRendererEvent,
|
||||
|
||||
Reference in New Issue
Block a user