❔ ✅ Using a list
I am writing a program in which you can save configurations, which would save if a specific feature is enabled, and if it is, write "whatever=true".
I am using this code to try and write text to a config file, and ConfigFile variable is a path. FeatureManager code:
And a feature:
This code has no errors, but the items (features) in the
registered
List aren't recognized in the writeConfig
method. (Meaning, when writing config it thinks there is no items, even though they were added)
The output i want into the ConfigFile:
Hopefully this is understandable, and someone can help :D11 Replies
You're probably adding features to a different feature manager instance
you never call init() too
in your example code, at least
init() is called when the program opens
Show the code calling init() and where the features are added
This
how do i not add features to a different feature manager instance
Use one instance
Pass it around
oh that worked
thanks
are these closed somehow or
!Solved I think
You have to do it. Or maybe "closed"
!close
Closed!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.