mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 18:46:17 +00:00
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:
committed by
David Lechner
parent
bd0b276ea5
commit
5948952174
+1
-1
@@ -120,7 +120,7 @@ const downloadProgress: Reducer<number | null> = (state = null, action) => {
|
||||
}
|
||||
|
||||
if (didFinishDownload.matches(action)) {
|
||||
return 1;
|
||||
return null;
|
||||
}
|
||||
|
||||
if (didFailToFinishDownload.matches(action)) {
|
||||
|
||||
@@ -266,6 +266,8 @@ function* handleDownloadAndRun(action: ReturnType<typeof downloadAndRun>): Gener
|
||||
}
|
||||
}
|
||||
|
||||
didProgressDownload(1);
|
||||
|
||||
const writeUserMetaMessageId2 = nextMessageId();
|
||||
|
||||
yield* put(
|
||||
|
||||
Reference in New Issue
Block a user