feat: progress bar and trying to animate

This commit is contained in:
Zamitto
2024-05-20 13:17:55 -03:00
parent f90dd82cbd
commit 3062b88f4a
4 changed files with 58 additions and 18 deletions

View File

@@ -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" });

View File

@@ -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: {