Skip to content

Commit

Permalink
Added resilience to the UIManager's DrawUI()
Browse files Browse the repository at this point in the history
  • Loading branch information
Minmoose committed Mar 29, 2024
1 parent 646710e commit 057ad36
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Brio/UI/UIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,17 @@ private void ApplySettings()

private void DrawUI()
{
BrioStyle.PushStyle();

_windowSystem.Draw();
FileDialogManager.Draw();
_libraryWindow.DrawModal();

BrioStyle.PopStyle();
try
{
BrioStyle.PushStyle();
_windowSystem.Draw();
FileDialogManager.Draw();
_libraryWindow.DrawModal();
}
finally
{
BrioStyle.PopStyle();
}
}

public void Dispose()
Expand Down

0 comments on commit 057ad36

Please sign in to comment.