mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: reset lastPacket on signout
This commit is contained in:
parent
2e85363966
commit
34e439bd66
12 changed files with 34 additions and 28 deletions
|
@ -32,10 +32,10 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
ipcRenderer.invoke("pauseGameSeed", shop, objectId),
|
||||
resumeGameSeed: (shop: GameShop, objectId: string) =>
|
||||
ipcRenderer.invoke("resumeGameSeed", shop, objectId),
|
||||
onDownloadProgress: (cb: (value: DownloadProgress) => void) => {
|
||||
onDownloadProgress: (cb: (value: DownloadProgress | null) => void) => {
|
||||
const listener = (
|
||||
_event: Electron.IpcRendererEvent,
|
||||
value: DownloadProgress
|
||||
value: DownloadProgress | null
|
||||
) => cb(value);
|
||||
ipcRenderer.on("on-download-progress", listener);
|
||||
return () => ipcRenderer.removeListener("on-download-progress", listener);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue