Skip to content

Commit 7ce0500

Browse files
committed
Allow undefined progress for indeterminate states
1 parent 94a729c commit 7ce0500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main-process/installStages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type InstallStageName = ValuesOf<typeof InstallStage>;
1010

1111
export interface InstallStageInfo {
1212
stage: InstallStageName;
13-
progress: number; // 0-100
13+
progress?: number; // 0-100, undefined for indeterminate
1414
message?: string;
1515
error?: string;
1616
timestamp: number;
@@ -29,7 +29,7 @@ export function createInstallStageInfo(
2929
): InstallStageInfo {
3030
return {
3131
stage,
32-
progress: options?.progress ?? 0,
32+
progress: options?.progress,
3333
message: options?.message,
3434
error: options?.error,
3535
timestamp: Date.now(),

0 commit comments

Comments
 (0)