Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Jan 8, 2025
1 parent e0440b2 commit adc287b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/logic/EngineController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ void EngineController::deleteWorld(const std::string& name) {
auto deletion = [this, folder]() {
logger.info() << "deleting " << folder;
fs::remove_all(folder);
engine.getGUI()->getMenu()->back();
if (!engine.isHeadless()) {
engine.getGUI()->getMenu()->back();
}
};

if (engine.isHeadless()) {
Expand Down

0 comments on commit adc287b

Please sign in to comment.