Undo and redo checks work on gui undo and redo buttons, not just shortcuts

This commit is contained in:
Yousef Khadadeh 2025-07-27 20:08:46 +03:00
parent 9aa41ddb7f
commit b745cae794
3 changed files with 19 additions and 8 deletions

View file

@ -78,6 +78,9 @@ class World {
void save_to_file(const std::filesystem::path& fileName);
void load_from_file(const std::filesystem::path& fileName, std::string_view buffer);
void undo_with_checks();
void redo_with_checks();
ServerPortionID ownID;
std::filesystem::path filePath;