akiraux / Akira

Native Linux App for UI and UX Design built in Vala and GTK
GNU General Public License v3.0
5.24k stars 202 forks source link

Implement 705: Undo should not get stacks in no-ops #707

Closed mbfraga closed 2 years ago

mbfraga commented 2 years ago
## Summary / How this PR fixes the problem? Don't trigger unnecessary undos on some ops. Shifting items (z-order) don't trigger undo stack adds in no-ops Added undo to aligning items, and added code to make sure they also don't add undo stacks in no-ops. ## Steps to Test Shift top-most item multiple times and make sure undos work correctly. Run align-items multiple times and check that undo works correctly ## This PR fixes/implements the following **bugs/features**: - Fixes #705