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

Move onPropertyChanged("Core" calls to their respective setters #451

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tlambert03
Copy link
Contributor

currently, if you. call core.setProperty("Core", ...) you will get a onPropertyChanged("Core" callback. However, if you directly call the setter method called by CorePropertyCollection::Execute, the end result is the same, but you don't get a callback. This moves the callbacks inside the setter methods. It's unfortunately more code, but it makes callbacks more consistent with internal state.

@@ -4225,6 +4259,17 @@ double CMMCore::getExposure(const char* label) throw (CMMError)
return 0.0;
}


void CMMCore::setTimeoutMs(long timeoutMs)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 @marktsuchida did i move this out of MMCore.h correctly?

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.

1 participant