Skip to content

Commit

Permalink
Add protection for the future file dialogs in EditorWindow class
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Mar 11, 2025
1 parent 133ce07 commit 08b0410
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GUI/WindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ bool WindowManager::InitializeCSFParser()
return false;
}

if (CSF_PARSER != nullptr)
{
LOGMSG("CSF parser has been initialized. Re-initializing existing parser.");
CSF_PARSER = nullptr;
}

try
{
CSF_PARSER = std::make_unique<CSFParser>(strCSFFilePath);
Expand Down

0 comments on commit 08b0410

Please sign in to comment.