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

Add option to persist control values. #156

Merged
merged 4 commits into from Jan 21, 2014
Merged

Add option to persist control values. #156

merged 4 commits into from Jan 21, 2014

Conversation

rryan
Copy link
Member

@rryan rryan commented Jan 19, 2014

  • Add support to persist a control value in the user configuration.
  • Allow skin-created controls to be marked persistent.
  • Remove ControlWidgetPropertyConnection loading/saving of control values from config.

Fixes Bug #1190797.

…iguration.

Remove ControlWidgetPropertyConnection loading and saving of control from config.
// anywhere in Mixxx.
static ConfigObject<ConfigValue>* getUserConfig() {
return s_pUserConfig;
}
Copy link
Member

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,

Copy link
Member Author

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;
}
}
Copy link
Member

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,

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@daschuer
Copy link
Member

Thank you for you just in time fixes :-)
LGTM

@rryan
Copy link
Member Author

rryan commented Jan 21, 2014

Thanks for the review!

rryan added a commit that referenced this pull request Jan 21, 2014
Add option to persist control values.
@rryan rryan merged commit 5846aa6 into mixxxdj:master Jan 21, 2014
@rryan rryan deleted the persist branch April 10, 2016 20:49
m0dB pushed a commit to m0dB/mixxx that referenced this pull request Jan 21, 2024
Resolves mixxxdj#156 without making downloading the latest version more
complicated for regular users.
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.

None yet

2 participants