fix(tui): initialize loader before starting indicator

This commit is contained in:
Armin Ronacher
2026-05-20 01:16:49 +02:00
parent 8a6775bbe6
commit 23b361cfd0

View File

@@ -34,10 +34,10 @@ export class Loader extends Text {
) { ) {
super("", 1, 0); super("", 1, 0);
this.ui = ui; this.ui = ui;
this.setIndicator(indicator);
this.spinnerColorFn = spinnerColorFn; this.spinnerColorFn = spinnerColorFn;
this.messageColorFn = messageColorFn; this.messageColorFn = messageColorFn;
this.message = message; this.message = message;
this.setIndicator(indicator);
} }
render(width: number): string[] { render(width: number): string[] {