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

Saved indicator not working correctly #35

Open
emmalexandria opened this issue Oct 29, 2023 · 1 comment
Open

Saved indicator not working correctly #35

emmalexandria opened this issue Oct 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@emmalexandria
Copy link
Owner

No description provided.

@emmalexandria emmalexandria added the bug Something isn't working label Oct 29, 2023
@emmalexandria emmalexandria changed the title Saved indictaor not working correctly Saved indicator not working correctly Oct 30, 2023
@emmalexandria
Copy link
Owner Author

I genuinely don't understand the issue here. My brain is simply not comprehending. My first thought was that it was because the function to update the Markdown contents in the state store and to set the saved indicator to false when the Markdown content of the editor changes was overwriting the saved store.

I added a janky store which causes that function to not set saved to false if the store is true. That fixed the bug for opening files. For saving files, it still doesn't work. It fixed the issue for saving files without a save as dialog, but not with a save as dialog. I have genuinely no clue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant