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

Wavlen in settings #138

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

NoSloppy
Copy link
Contributor

Allow WavLen to be adjusted in Settings Menu.
Change handleClick() to better named handleSettings(), esp since now there's a value, not just a click.

@@ -10503,21 +10532,26 @@ <h4 class="settings-section-label" title="These settings are useful for people m
}

class SavedState {
constructor(name, def, update_function) {
constructor(name, def, update_function, type = "checkbox") {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A more object-oreiented way to do this would be to have two subclasses: SavedStateBool and SavedStateNumber (or something like that). Both would inherit from SavedState and override just the parts required. (Which I guess would be the set() function.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. How about now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants