hub: fix tooltip when download complete

The tooltip was still showing "Downloading... 100%" after downloading
was complete instead of returning to the normal tooltip.
This commit is contained in:
David Lechner
2022-10-17 13:44:21 -05:00
committed by David Lechner
parent bd0b276ea5
commit 5948952174
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ const downloadProgress: Reducer<number | null> = (state = null, action) => {
}
if (didFinishDownload.matches(action)) {
return 1;
return null;
}
if (didFailToFinishDownload.matches(action)) {
+2
View File
@@ -266,6 +266,8 @@ function* handleDownloadAndRun(action: ReturnType<typeof downloadAndRun>): Gener
}
}
didProgressDownload(1);
const writeUserMetaMessageId2 = nextMessageId();
yield* put(