fix(editor): exportZone clears autoSavePendingChanges_ flag

quickSave was the only path that cleared the flag, but exportZone is
also reachable through 'Export Open Format' and exportContentPack
without going through quickSave. Now any successful zone export clears
the dirty state so the asterisk and quit-confirm dialog reset properly.
This commit is contained in:
Kelsi 2026-05-06 03:26:01 -07:00
parent 5241bbd669
commit c1b6c9f621

View file

@ -1356,6 +1356,10 @@ void EditorApp::exportZone(const std::string& outputDir) {
LOG_INFO(" NPCs: ", npcSpawner_.spawnCount(), " creatures");
LOG_INFO(" Quests: ", questEditor_.questCount());
LOG_INFO("========================");
// Any path through exportZone counts as a save — clear the pending flag
// so the dirty asterisk and quit-confirm dialog go away.
autoSavePendingChanges_ = false;
}
void EditorApp::exportContentPack(const std::string& destPath) {