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

GUI does not read out correct AddConstIntParameter initial value #183

Closed
Selene29 opened this issue Apr 15, 2024 · 2 comments
Closed

GUI does not read out correct AddConstIntParameter initial value #183

Selene29 opened this issue Apr 15, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Selene29
Copy link
Contributor

Selene29 commented Apr 15, 2024

void CTest::CreateStructure()
{
	AddConstIntParameter("TestInt", 4, "-", "abc", 3, 10);
}

Parameter gets set correctly in the background, but the UI displays always 1 instead of 4.

version: current master

@vasylskorych
Copy link
Member

Here, "4" is an initial value, and you should see it if you add a new model on the flowsheet. The observed behaviour can happen if, you open an old flowsheet with an old version of this model, where a parameter (maybe even with other name) on its place had value of "1". Could you confirm that "1" is displayed even for a new added units?

@vasylskorych vasylskorych added the question Further information is requested label Apr 15, 2024
@Selene29
Copy link
Contributor Author

Yes, it was the old save file.
(I reused an old one from 2018 which had everything set up and then replaced the old unit with the new one)

If i create a completely new flowsheet, the display is correct.

Thank you.

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

No branches or pull requests

2 participants