Commit 8f0d61d
committed
fix: cache Tree object in StepTracker to prevent duplicate banner
The StepTracker.render() method was creating a new Tree object each time
it was called, causing duplicate 'Initialize Specify Project' titles when
Live.update() was invoked multiple times.
Now the Tree is cached in self._tree and reused:
- First render: creates new Tree and caches it
- Subsequent renders: clears children and re-adds them to the same Tree
This ensures only one Tree object exists with a single title.1 parent 3942f6e commit 8f0d61d
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
344 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
345 | 352 | | |
346 | 353 | | |
347 | 354 | | |
| |||
375 | 382 | | |
376 | 383 | | |
377 | 384 | | |
378 | | - | |
379 | | - | |
| 385 | + | |
| 386 | + | |
380 | 387 | | |
381 | 388 | | |
382 | 389 | | |
| |||
1578 | 1585 | | |
1579 | 1586 | | |
1580 | 1587 | | |
1581 | | - | |
1582 | | - | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
1583 | 1591 | | |
1584 | | - | |
1585 | 1592 | | |
1586 | 1593 | | |
1587 | 1594 | | |
| |||
0 commit comments