From f0018c6ceb5721f86bf81523d79bce3f37f80d05 Mon Sep 17 00:00:00 2001 From: aza547 Date: Thu, 19 Dec 2024 18:07:07 +0000 Subject: [PATCH] fixes #572 --- CHANGELOG.md | 3 ++- src/renderer/containers/ApplicationStatusCard/Status.tsx | 4 ++-- src/storage/CloudClient.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37dd6df3..0e310f45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [Issue 566](https://github.com/aza547/wow-recorder/issues/566) - Add Korean translations. ### Fixed +- [Issue 572](https://github.com/aza547/wow-recorder/issues/572) - Fix upload bug. +- Stop upload/download trackers flickering on 0%. ## [6.3.0] - 2024-12-12 ### Changed @@ -23,7 +25,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add difficulty IDs for Classic Era Phase 6 raids. - ## [6.2.1] - 2024-12-08 ### Fixed - Fix a bug where Classic Era was not recording. diff --git a/src/renderer/containers/ApplicationStatusCard/Status.tsx b/src/renderer/containers/ApplicationStatusCard/Status.tsx index f04b2d29..a2659667 100644 --- a/src/renderer/containers/ApplicationStatusCard/Status.tsx +++ b/src/renderer/containers/ApplicationStatusCard/Status.tsx @@ -293,7 +293,7 @@ const Status = ({ clearTimeout(clearUploadProgressTimer.current); } - if (!progress || progress === 100) { + if (progress === null || progress === undefined || progress === 100) { clearUploadProgressTimer.current = setTimeout( () => setUploadProgress(false), 1000 @@ -308,7 +308,7 @@ const Status = ({ clearTimeout(clearDownloadProgressTimer.current); } - if (!progress || progress === 100) { + if (progress === null || progress === undefined || progress === 100) { clearDownloadProgressTimer.current = setTimeout( () => setDownloadProgress(false), 1000 diff --git a/src/storage/CloudClient.ts b/src/storage/CloudClient.ts index d3a14bfc..71ee3d9a 100644 --- a/src/storage/CloudClient.ts +++ b/src/storage/CloudClient.ts @@ -807,7 +807,7 @@ export default class CloudClient extends EventEmitter { const stream = fs.createReadStream(file, { start: offset, - end: offset + bytes, + end: offset + bytes - 1, }); try {