Stop automatically saving maps/layouts on creation

This commit is contained in:
GriffinR
2025-02-25 18:34:58 -05:00
parent b78f23f259
commit c6c64aae15
4 changed files with 27 additions and 23 deletions

View File

@@ -1315,12 +1315,7 @@ void MainWindow::onNewMapCreated(Map *newMap, const QString &groupName) {
ui->comboBox_EmergeMap->insertItem(mapIndex, newMap->name());
}
if (userSetMap(newMap->name())) {
// TODO: Creating a new map shouldn't be automatically saved.
// For one, it takes away the option to discard the new map.
// For two, if the new map uses an existing layout, any unsaved changes to that layout will also be saved.
save(true);
}
userSetMap(newMap->name());
}
// Called any time a new layout is created (including as a byproduct of creating a new map)