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

Nervousnet On/Off Button should remember State #20

Open
a-enz opened this issue May 26, 2017 · 0 comments
Open

Nervousnet On/Off Button should remember State #20

a-enz opened this issue May 26, 2017 · 0 comments

Comments

@a-enz
Copy link
Collaborator

a-enz commented May 26, 2017

Currently this button and the logic from the VM don't remember the State set in an earlier app session. Every time the app is closed and openend the Button and State from the VM is reset to "ON".

The VM logic should consider state set in earlier sessions and initialize sensors on that state:

  • This should be the case already, but does not work.

The button should be initialized by checking the nervousnet state first:

  • call to nVM.getNervousnetState()
  • problem: currently it is not possible to reference the button with an outlet because it is in a dynamic cell. Possible fix idea: put Cells of TableView into static mode.
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