Skip to content

Unreliable Event boolean in UserSettings #24

@Jsalam

Description

@Jsalam

eventOnVSettings is a boolean that indicated if any gui element in ControlPanel changed. It is true when the ControlP5.Event is triggered in ControlPanel and it is reset to false at the end of the GraphPad.draw(). It is somehow switching to false before the draw loop completes.

To solve this it is necessary to replace this rudimentary solution with an Observer pattern. Any object that needs update at events on control panel must observe UserSettings event handler (UserSettings.getInstance().setEventOnVSettings())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions