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

BUG: Do not clear text value when default is used #43

Merged

Conversation

adargel
Copy link
Contributor

@adargel adargel commented Jul 15, 2020

Clearing the text value when the desired value equals the default value
causes an issue when using the control as the value for a parameter in
an ngc call since the SubCallButton uses the text value of the control
as the parameter value. In this scenario there is no way to use the
default value as the settings actual value (that I know of) since the control sets the
text to ''.

Thanks for the amazing work on qtpyvcp and probe_basic. It is very much appreciated.

adargel and others added 2 commits July 14, 2020 21:35
Clearing the text value when the desired value equals the default value
causes an issue when using the control as the value for a parameter in
an ngc call since the SubCallButton uses the text value of the control
as the parameter value. In this scenario there is no way to use the
default value as the settings actual value since the control sets the
text to ''.
@KurtJacobson
Copy link
Member

@adargel Good point, thanks for the PR!

@KurtJacobson KurtJacobson merged commit 7ba69f5 into kcjengr:master Jul 15, 2020
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