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

Problems caused when toggling between 'fresh input' and 'saved colors' #4

Open
rileyskains opened this issue Jan 30, 2018 · 0 comments

Comments

@rileyskains
Copy link
Owner

This is being created to address the problem raised in the comments on issue #2.

When user accesses 'Saved Colors', selects a palette, toggles back to 'Fresh Input', goes back to 'Saved Colors', and then back to 'Fresh Input', the extract button displays.

If that button is clicked, it causes the colors to be run through the extract() function again, which duplicates the colors in the color-container section.

Currently, toggling and extracting and button displaying is controlled with the nasty/hacky usefulBoolean and usefulBoolean2 values being set to true or false depending on which functions run and then use if statements to determine if other code should run.

I suppose the necessity for a more elegant system for toggling is what is really being desired here.

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

No branches or pull requests

1 participant