Skip to content

Commit 5171c3a

Browse files
fix: Duplicate Generating in codegen titles
1 parent 47904ff commit 5171c3a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@godot-js/editor": patch
3+
---
4+
5+
**Fix:** Duplicate "Generating" label appeared in the UI during codegen.

scripts/jsb.editor/src/jsb.editor.codegen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ class CodegenTasks {
651651
const EditorProgress = godot.GodotJSEditorProgress;
652652
const progress = new EditorProgress();
653653
let force_wait = 24;
654-
progress.init(`codegen-${this._name}`, `Generating ${this._name}`, this.tasks.length);
654+
progress.init(`codegen-${this._name}`, this._name, this.tasks.length);
655655

656656
try {
657657
for (let i = 0; i < this.tasks.length; ++i) {
@@ -2491,7 +2491,7 @@ export class TSDCodeGen {
24912491
async emit() {
24922492
await frame_step();
24932493

2494-
const tasks = new CodegenTasks("godot.d.ts");
2494+
const tasks = new CodegenTasks("Generating godot.d.ts");
24952495

24962496
// aliases
24972497
tasks.add_task("Aliases", () => this.emit_aliases());

0 commit comments

Comments
 (0)