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
Add option to persist control values. #156
Conversation
…iguration. Remove ControlWidgetPropertyConnection loading and saving of control from config.
// anywhere in Mixxx. | ||
static ConfigObject<ConfigValue>* getUserConfig() { | ||
return s_pUserConfig; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can just use s_pUserConfig without a wrapping function,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
if (ok) { | ||
value = configValue; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for a check,
value = pConfig->getValueString(m_key).toDouble();
this is fine, because toDouble returns 0.0 if conversion fails,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Thank you for you just in time fixes :-) |
Thanks for the review! |
Add option to persist control values.
Resolves mixxxdj#156 without making downloading the latest version more complicated for regular users.
Fixes Bug #1190797.