mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: progress bar and trying to animate
This commit is contained in:
parent
f90dd82cbd
commit
3062b88f4a
4 changed files with 58 additions and 18 deletions
|
@ -65,11 +65,11 @@ const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => {
|
|||
total: total,
|
||||
delta: 123,
|
||||
transferred: (total * i) / 5,
|
||||
percent: (total * i) / 5 / total,
|
||||
percent: ((total * i) / 5 / total) * 100,
|
||||
bytesPerSecond: 4568,
|
||||
},
|
||||
});
|
||||
await sleep(500);
|
||||
await sleep(1000);
|
||||
}
|
||||
|
||||
sendEvent({ type: "update-downloaded" });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue