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

Added updateDisplay on GUI object #97

Closed
wants to merge 1 commit into from
Closed

Added updateDisplay on GUI object #97

wants to merge 1 commit into from

Conversation

Ucodia
Copy link

@Ucodia Ucodia commented May 21, 2016

Currently manual update was only available on individual controllers and folders.

// update controllers
for (var c in gui.__controllers) {
  gui.__controllers[c].updateDisplay();
}

// update folders controllers
for (var f in gui.__folders) {
  for (var fc in gui.__folders[f].__controllers) {
    gui.__folders[f].__controllers[fc].updateDisplay(); 
  }
}

This commit adds an updateDisplay() method on the GUI object that recurses on all its controllers and folders to request a grahical update. Thus refreshing the whole UI becomes more straightforward, especially with folders.

gui.updateDisplay();

@customlogic
Copy link
Contributor

Thanks! I've slightly modified and merged your code into develop 0399ab6

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

Successfully merging this pull request may close these issues.

2 participants