-
Notifications
You must be signed in to change notification settings - Fork 227
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
Fix bugs and inconveniences around blunder thresholds table #801
base: master
Are you sure you want to change the base?
Conversation
Thank you for the detailed correction.
Before application : If you leave a threshold blank or enter a double-byte value, the next time you check, the value will not be displayed, but the value that was previously set will be displayed. After applying: If you leave the threshold blank or enter a double-byte value, the next time you check, it will be displayed as "-777.0". Is it correct that the above PR is intended to be this kind of content? When I enter a threshold in full-width characters, it looks like it's accepted at the time, but hitting the space bar doesn't turn the analysis on or off. This may confuse users who are not familiar with computers. |
Thanks for testing. Yes, I intend to convert invalid thresholds into a nonsense value -777.0. Your proposal is desirable of course. But it needs additional coding that I'm not willing to do. So I made this "Quick & dirty patch". Without this patch, even one mistake make you lose ALL the changes in the table when you click the OK button. Would you post a new issue for your above request if it is important for you? Though I don't have enough energy now, I or someone may possibly implement it in future. |
What I suggested is very trivial and I don't think it's important enough to raise any new issues. By the way, I have noticed something in the course of this examination of blunder color. |
Mistakes were made due to lack of verification.
Sort blunder thresholds before recording applies, the thresholds you enter are automatically sorted in decreasing order, so it seems to work no matter what order you enter them in. |
I read the document of JTable and noticed that we can simply store Double into it. So I pushed another commit for better behavior. |
I pushed yet another commit so that you can use threshold=0.0 to specify the color for "normal" moves. |
Thank you very much. |
See the commit logs for details. As this PR includes various changes, it will be better to test it for a while before merging.