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

ExpressionUI : Fix initial UI state #2482

Merged
merged 1 commit into from
Mar 7, 2018

Conversation

johnhaddon
Copy link
Member

When an Expression node is made directly via the Node menu, it starts out without either the expression or language set. If you entered an expression before choosing the language, then this would do nothing, and then when choosing the language you'd lose the expression! I presume this hasn't been spotted until now because most people create expressions via the NodeEditor right click menu which sets the language upfront.

The fix applied here is simple : if the language isn't set, label the menu to prompt the user to set it, and don't enabled the expression text field until that is done.

When an Expression node is made directly via the Node menu, it starts out without either the expression or language set. If you entered an expression _before_ choosing the language, then this would do nothing, and then when choosing the language you'd lose the expression! I presume this hasn't been spotted until now because most people create expressions via the NodeEditor right click menu which sets the language upfront.

The fix applied here is simple : if the language isn't set, label the menu to prompt the user to set it, and don't enabled the expression text field until that is done.
@andrewkaufman andrewkaufman merged commit a1e357f into GafferHQ:master Mar 7, 2018
@johnhaddon johnhaddon deleted the expressionUIFix branch March 29, 2018 10:47
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