Detect when local changes occured to file

This commit is contained in:
Yousef Khadadeh 2026-01-17 20:11:13 +03:00
parent 8f03080b87
commit 1955de9e3e
5 changed files with 47 additions and 4 deletions

View file

@ -404,6 +404,7 @@ void World::save_to_file(const std::filesystem::path& filePathToSaveAt) {
#endif
Logger::get().log("USERINFO", "File saved");
undo.set_save_action();
}
catch(const std::exception& e) {
Logger::get().log("WORLDFATAL", std::string("Save error: ") + e.what());