Prevent undo and redo at points when they might break the program

This commit is contained in:
Yousef Khadadeh 2025-07-27 16:53:22 +03:00
parent f606fc6fc1
commit 2de5c90006
21 changed files with 79 additions and 2 deletions

View file

@ -43,6 +43,8 @@ class DrawingProgram {
void free_collider_memory();
void allocate_collider_memory();
bool prevent_undo_or_redo();
void add_file_to_canvas_by_path(const std::string& filePath, Vector2f dropPos, bool addInSameThread);
void add_file_to_canvas_by_data(const std::string& fileName, std::string_view fileBuffer, Vector2f dropPos);