Skip to content

Commit

Permalink
refactor: remove progress indicator animation
Browse files Browse the repository at this point in the history
and improve precisions
  • Loading branch information
3Shain committed Mar 9, 2023
1 parent 7b4fbdf commit e0eca05
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/launcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export async function createLauncher({
size="sm"
borderRadius={8}
>
<ProgressIndicator borderRadius={8}></ProgressIndicator>
<ProgressIndicator style={"transition: none;"} borderRadius={8}></ProgressIndicator>
</Progress>
</Show>
</Box>
Expand Down Expand Up @@ -475,7 +475,9 @@ async function* downloadAndInstallGameProgram({
];
yield [
"setProgress",
Number((progress.completedLength * BigInt(100)) / progress.totalLength),
Number(
(progress.completedLength * BigInt(10000)) / progress.totalLength
) / 100,
];
}
yield ["setStateText", "DECOMPRESS_FILE_PROGRESS"];
Expand Down Expand Up @@ -504,7 +506,9 @@ async function* downloadAndInstallGameProgram({
];
yield [
"setProgress",
Number((progress.completedLength * BigInt(100)) / progress.totalLength),
Number(
(progress.completedLength * BigInt(10000)) / progress.totalLength
) / 100,
];
}
yield ["setStateText", "DECOMPRESS_FILE_PROGRESS"];
Expand Down

0 comments on commit e0eca05

Please sign in to comment.