Initialize More Time button to display none #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes an issue with the button showing when enableMoreTimeButton is true and the "Automatically show answer" setting is set to zero
Description
After disabling the more time button I noticed that it was still showing up - but only on some of my decks. After investigating in anki, I quickly realized that the culprit was wether there was a value in the "Automatically show answer" timer setting. When it's set to 0, the more timer button is showing up always regardless of the setting.
To address this, I hid the button by default. The idea is that when spdfShow is called, it will correctly reset the display value to show it. This does work with my anki settings, although I don't claim to be an expert on the platform. (only trying this on mac) Honestly, there's probably a code bug somewhere in here with the spdfShow/Hide functions, but I couldn't find it.
Thank you for this addon! Sorry I didn't want to see your extra button lol
Checklist:
Please replace the space inside the brackets with an x and fill out the ellipses if the following items apply: