Skip to content

Commit ebd1dc7

Browse files
committed
Fix debug window not refreshing when selecting new vehicle.
1 parent 0f01124 commit ebd1dc7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ui/debugWindow.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ class DebugWindow
1414

1515
constructor(private entityId: number)
1616
{
17-
this._window = ui.getWindow(DebugWindow.identifier)
18-
?? this.createWindow();
17+
this._window = ui.getWindow(DebugWindow.identifier);
18+
if (this._window)
19+
{
20+
this._window.close();
21+
}
22+
23+
this._window = this.createWindow();
1924
}
2025

2126

0 commit comments

Comments
 (0)