mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-24 03:11:03 +00:00
feat: progress bar and trying to animate
This commit is contained in:
@@ -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" });
|
||||
|
||||
@@ -57,8 +57,8 @@ export class WindowManager {
|
||||
if (this.splashWindow) return;
|
||||
|
||||
this.splashWindow = new BrowserWindow({
|
||||
width: 400,
|
||||
height: 400,
|
||||
width: 380,
|
||||
height: 380,
|
||||
frame: false,
|
||||
alwaysOnTop: false,
|
||||
webPreferences: {
|
||||
|
||||
Reference in New Issue
Block a user