-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 AutoDJ xfader recenter option (default off) #13303
Conversation
Hi Ronso, If it's possible I just want to add the lines in the ui with some explanation (tooltip),
greetings |
f208f52
to
5b80d3a
Compare
Thanks for your proposal, I already added the hint as static label (no as tooltip which may not be discovered). Ready for review! |
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.
couple comments, looks pretty good so far. I can't really review the ui file though
// if (m_pConfig->getValue<bool>(ConfigKey(kAutoDJGroup, | ||
if (m_pConfig->getValue<bool>(ConfigKey(kConfigKey, | ||
QStringLiteral("center_xfader_when_disabling")))) { |
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.
stray comment
// if (m_pConfig->getValue<bool>(ConfigKey(kAutoDJGroup, | |
if (m_pConfig->getValue<bool>(ConfigKey(kConfigKey, | |
QStringLiteral("center_xfader_when_disabling")))) { | |
if (m_pConfig->getValue<bool>(ConfigKey(kConfigKey, | |
QStringLiteral("center_xfader_when_disabling")))) { |
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.
whoopsy
RequeueIgnoreTimeEdit->setTime(QTime::fromString( | ||
"23:59", RequeueIgnoreTimeEdit->displayFormat())); |
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 to implicitly depend on the display format or construct the time in an an unnecessarily slow fashion.
RequeueIgnoreTimeEdit->setTime(QTime::fromString( | |
"23:59", RequeueIgnoreTimeEdit->displayFormat())); | |
RequeueIgnoreTimeEdit->setTime(QTime(23, 59)); |
// if (m_pConfig->getValue<bool>(ConfigKey(kAutoDJGroup, | ||
if (m_pConfig->getValue<bool>(ConfigKey(kConfigKey, | ||
QStringLiteral("center_xfader_when_disabling")))) { | ||
m_pCOCrossfader->set(0); |
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.
would it make more sense to set use crossfader_set_default
here?
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.
Sure, butfor that we'd need another control, either via ControlObject::get() or another member.
I'd prefer to stick to the crossfader CO.
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.
fair. I just thought the _set_default
was more expressive.
CenterXfaderCheckBox->setChecked(m_pConfig->getValue( | ||
ConfigKey("[Auto DJ]", "center_xfader_when_disabling"), false)); |
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'd be nice if these defaults were constexpr static
s. Currently they're duplicated a bunch of times.
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.
Jep, moving all repeatedly used pref ConfigKeys (preferences, and respective engine units) to other files.
I have some changes stashed already, but I prefer to do that in a separate PR.
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.
LGTM. feel free to squash and force push
5b014f8
to
77459a0
Compare
Sorry, forgot about this. |
adopting #13156 but cleaning up the "buffer" settings before
(that dlg wrote some "...Buff" settings to config for storing temp pending settings...)
Fixes #11571
TODO: