-
Notifications
You must be signed in to change notification settings - Fork 235
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
Clicking the save button when malfunctioning erases the file #208
Comments
An helpful but imperfect fix is to copy and paste the ahk script window (if responsive) into another ahk script file. However, as there is, to my knowledge, no way to import an ahk script back into PMC, the recovered script can only be opened using AutoHotKey. |
Having looked at the code for a while, I believe that the error comes from the Save subroutine (as obvious as it sounds), more specifically line 2164. |
Thanks. I'm out of time now but I'll see if I can work on that sometime soon. |
It's rather ironical for a save button to literally delete your file, but that's what happens here. If the application is malfunctioning in some way, and the macro part of the app is frozen while the toolbar is still functioning, then clicking the save button (as one might be tempted to do before restarting the app) will result in your file being deleted.
Steps to reproduce the error :
As you can imagine, this is a very problematic issue, as "Save your file and restart the app" is one of the most common ways, if not the most common way to deal with errors. If doing this ends up deleting your file for good, it makes other errors that much more dangerous. Instead of losing the progress you've made since you last saved, you end up losing hours if not tens of hours of work.
The text was updated successfully, but these errors were encountered: