From 776c46d7e1b8ef67877e63f52ff1d5dd58984c9b Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Fri, 24 Mar 2023 15:46:37 -0400 Subject: [PATCH] Set download progress to zero immediately, don't wait for progress event. --- app/assets/js/scripts/landing.js | 1 + package-lock.json | 16 ++++++++-------- package.json | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index 3d1dfa8..94d311a 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -521,6 +521,7 @@ async function dlAsync(login = true) { if(invalidFileCount > 0) { loggerLaunchSuite.info('Downloading files.') setLaunchDetails('Downloading files..') + setLaunchPercentage(0) try { await fullRepairModule.download(percent => { setDownloadPercentage(percent) diff --git a/package-lock.json b/package-lock.json index 40a40b1..516af38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "ejs": "^3.1.9", "ejs-electron": "^2.1.1", "electron-updater": "^5.3.0", - "fs-extra": "^11.1.0", + "fs-extra": "^11.1.1", "github-syntax-dark": "^0.5.0", "got": "^11.8.5", "helios-core": "~2.0.0-rc.3", @@ -24,7 +24,7 @@ "semver": "^7.3.8" }, "devDependencies": { - "electron": "^23.1.4", + "electron": "^23.2.0", "electron-builder": "^23.6.0", "eslint": "^8.36.0" }, @@ -1408,9 +1408,9 @@ } }, "node_modules/electron": { - "version": "23.1.4", - "resolved": "https://registry.npmjs.org/electron/-/electron-23.1.4.tgz", - "integrity": "sha512-3Z6CpAPdhv6haYX9DTO7k0l6uAUreZM3/EngQYqGN3Gz7Fp0DPb/egt8BwR3ClG/jTlQM+PQ+5WkTK0eMjm07A==", + "version": "23.2.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-23.2.0.tgz", + "integrity": "sha512-De9e21cri0QYct/w6tTNOnKyCt9RVKUw5F8PEN4FPzGR9tr6IT53uyt42uH754uJWrZeLMCAdoXy6/0GmMmYZA==", "hasInstallScript": true, "dependencies": { "@electron/get": "^2.0.0", @@ -1931,9 +1931,9 @@ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" }, "node_modules/fs-extra": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz", - "integrity": "sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", diff --git a/package.json b/package.json index 92cdaae..296ba94 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "ejs": "^3.1.9", "ejs-electron": "^2.1.1", "electron-updater": "^5.3.0", - "fs-extra": "^11.1.0", + "fs-extra": "^11.1.1", "github-syntax-dark": "^0.5.0", "got": "^11.8.5", "helios-core": "~2.0.0-rc.3", @@ -38,7 +38,7 @@ "semver": "^7.3.8" }, "devDependencies": { - "electron": "^23.1.4", + "electron": "^23.2.0", "electron-builder": "^23.6.0", "eslint": "^8.36.0" },