Skip to content
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

Opening a file immediately marks it as having unsaved changes #64

Closed
LarsKemmann opened this issue Nov 1, 2024 · 5 comments
Closed

Comments

@LarsKemmann
Copy link

This also triggers the "Project has unsaved changes" dialog on close.

Opening a file should not result in any unsaved changes until I actually make some kind of change to the file.

@countincognito
Copy link
Owner

This will always happen if auto-compile is on. The compilation output is part of the project file, so a recompile automatically updates the project file. If you disable auto-compilation, then it will remain unchanged.

@LarsKemmann
Copy link
Author

I guess what I'm saying is that if the project compilation output is unchanged from the previous compilation, that should not result in the 'unsaved changes' triggering. I can appreciate that a check like that could require a bit of CPU time, but it would only ever need to happen once, when the file is first opened (or maybe if it's ever possible to implement undo/redo support, down the road).

@LarsKemmann
Copy link
Author

@countincognito Let me know if you'd consider reopening this based on my comment above.

@countincognito
Copy link
Owner

I think I found a way to make this work. It should be completed in the next release.

@LarsKemmann
Copy link
Author

This is fantastic!!! 🥳❤️

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

No branches or pull requests

2 participants