-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt saves only when necessary #3194
Comments
The reason for this is that anything that goes on the Undo stack also marks the document as modified. I'd also like to see a distinction between actions that modify the map data, and those that do not. It might not be very important, but it can be confusing when a map is marked as changed when you don't remember making any changes. |
Changing the selected area is an undo command so that it can be undone, but since it does not actually modify the file it should not cause the file to get marked as modified. Closes #3194
I've made a PR with a change that should fix this. Inspecting the |
Gave it a look, tried every kind of selection tool and mode I could think of and none of them marked the document as dirty. Tried the wand in every selection mode, the rectangular select in every selection mode, select all, select none, invert selection, select same tile in every selection mode. Also tried Undoing and Redoing these selections, no problems there. Tried many other map tools (and a script macro) to check that they still mark as dirty. This was of course not an exhaustive test, but I haven't found issues so far. I'll keep using this build and report back if I notice anything weird. I did have a crash when undoing some non-selection changes, but I suspect this is the same crashing I occasionally get that's probably related to scripts and stale references to nonexistent layers rather than directly related to this change. |
Alright, well that's still a little worrying of course. Thanks for the test drive! |
Changing the selected area is an undo command so that it can be undone, but since it does not actually modify the file it should not cause the file to get marked as modified. Closes #3194
At the moment if I use the selection tools, e. Select Same Tile, Magic Wand selection or Rectangle selection, etc just to highlight a selection of tiles and don't do anything with it, it registers as a file change despite not doing anything to change any contents of the map.
The text was updated successfully, but these errors were encountered: