fix
This commit is contained in:
parent
e0440b263e
commit
adc287baf3
@ -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()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user