Skip to content

Commit

Permalink
Fix debug window not refreshing when selecting new vehicle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Basssiiie committed Dec 5, 2020
1 parent 0f01124 commit ebd1dc7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ui/debugWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ class DebugWindow

constructor(private entityId: number)
{
this._window = ui.getWindow(DebugWindow.identifier)
?? this.createWindow();
this._window = ui.getWindow(DebugWindow.identifier);
if (this._window)
{
this._window.close();
}

this._window = this.createWindow();
}


Expand Down

0 comments on commit ebd1dc7

Please sign in to comment.