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
Closing parser after making no changes sometimes shows the "Are you sure - it looks like you have made changes" dialog #875
Comments
Confirmed on a fresh install of v438, with default parsers. Tested by opening each parser in manage parsers in turn then pressing [Esc] to close the window. All except "gelbooru 0.2.5 file page parser" worked as expected. It does not have a subsidiary parser. Parser definition via clipboard, for reference:
|
Thank you for this report. I am sorry I am getting back to it so late--I am trying to catch up with my bug reports now. I regret the delay. The problem here is I hacked in the 'has changes' detection automatically, by testing if the parsing object changed in any possible way from the one that booted with the dialog. However parsing objects also hold some test data, and the dialogs now update older parsing objects with nicer test data. Then, when the parent dialog gets a cancel call and looks for changes, it finds some, even though they are superficial and not user-made. I now nullify the test data before the comparison is made, and it seems not to now give a false positive warning. This will be out for this week's release. Please let me know if you have any more trouble with it. |
Environment
Hydrus version: 438, from executable
Platform: Windows 10
OS specifics: 20H2 OS Build 19042.928
What happens
When closing the edit parser dialog, after having made no changes, the "Are you sure" dialog appears occasionally. It does not
happen with every parser, but if it happens with a particular parser it does consistently.
I noticed the "If this is a subsidiary parser..." text, but this it happens on "root" parsers that have no subsidiary parsers as well.
Steps to reproduce
Desired outcome
The alert should only appear if changes have been made to the parser, or change the prompt "If this is a subsidiary parser..." if this a normal thing for "root" parsers as well.
Error message / Log file / Screenshots
(n/a)
Notes
I've done a LOT of parser edits over the last few months including things like deleting, exporting everything to a PNG, re-adding some default parsers, etc., so who knows what condition my data is in? 😄 I will try to replicate on a new Hydrus instance.
The text was updated successfully, but these errors were encountered: