Skip to content

feat: undo/redo and linux build config testing#1

Merged
F4tal1t merged 4 commits into
masterfrom
undo/redo
May 27, 2026
Merged

feat: undo/redo and linux build config testing#1
F4tal1t merged 4 commits into
masterfrom
undo/redo

Conversation

@F4tal1t
Copy link
Copy Markdown
Owner

@F4tal1t F4tal1t commented May 27, 2026

Summary of runtime flow:

User action (keystroke, drag end, erase) -> Tool/Card code collects minimal serializable data -> calls a Commit* helper on MosugoCanvas -> MosugoCanvas wraps into a historyCommand and commitCommand pushes it onto undoStack and clears redoStack.
When Undo() is called, MosugoCanvas pops last command and calls Undo(canvas) on it while suppressHistory=true so undoing actions do not themselves create history entries; then it calls refreshIfReady() to update the UI. Redo() is symmetric.

if card == nil {
return storage.MosuData{}
}
return storage.MosuData{
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why

@F4tal1t F4tal1t merged commit 4ad8fee into master May 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant