We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5d8ccd commit 86ca1c6Copy full SHA for 86ca1c6
src/frontend/components/UI/DownloadToastManager/index.tsx
@@ -160,9 +160,16 @@ export default function DownloadToastManager() {
160
return 'inProgress'
161
}
162
163
- const adjustedDownloadedInBytes = downloadedMB * 1024 * 1024
164
- const adjustedDownloadSizeInBytes =
165
- progress.totalSize || installInfo?.manifest.download_size || 0
+ let adjustedDownloadedInBytes = downloadedMB * 1024 * 1024
+ const adjustedDownloadSizeInBytes = isExtracting
+ ? installInfo?.manifest.disk_size || 0
166
+ : installInfo?.manifest.download_size || 0
167
+
168
+ if (isExtracting) {
169
+ if (adjustedDownloadedInBytes > adjustedDownloadSizeInBytes) {
170
+ adjustedDownloadedInBytes = adjustedDownloadSizeInBytes
171
+ }
172
173
174
return (
175
<Draggable>
0 commit comments