Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

addIcons() now pre-seeds changesToItem if the item has an icon #53

Merged
merged 1 commit into from
Jun 14, 2016

Conversation

DamnedScholar
Copy link
Contributor

So, I did some looking around, and in the process I solved the problem of icon persistence. The addIcons() function turned out to be a great place for the code to take the const itemIcon that had already been defined and use that to pre-seed the global changesToItem. It's a slightly unintuitive way of doing things, but it's a very small change.

This resolves #52.

@jccguimaraes
Copy link
Owner

this is excellent!

@jccguimaraes jccguimaraes merged commit 3c49cb9 into jccguimaraes:master Jun 14, 2016
@DamnedScholar DamnedScholar deleted the icon-persistence branch June 24, 2016 04:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating an item removes the icon selection
2 participants