-
-
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
Preferences > Key: restore custom notation #4136
Preferences > Key: restore custom notation #4136
Conversation
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 don't fully understand the code changes to be honest, but I was able to confirm that the issue exists in main and 2.3 and is fixed by this PR.
Do yo want to include a changelog entry? I don't know our current policy on what to include in the changelog when.
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.
Only a minor typo.
return; | ||
} | ||
|
||
void DlgPrefKey::setNotation(KeyUtils::KeyNotation notation) { |
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.
The whole class and especially these methods are not so great. But at least the handling is consistent now.
for (auto it = m_keyLineEdits.constBegin(); | ||
it != m_keyLineEdits.constEnd(); ++it) { | ||
it.value()->setEnabled(true); | ||
it.value()->setText(KeyUtils::keyToString(it.key(), notation)); | ||
// QLineEdits are only enabled for Custon notation. |
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.
typo
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.
thx, fixed
a77f7fd
to
c270ba4
Compare
ready. |
@@ -128,8 +128,11 @@ void DlgPrefKey::loadSettings() { | |||
} | |||
} | |||
|
|||
setNotation(notation_type); | |||
// Store notation map for later rećall... |
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.
Why all the accents? Maybe one of your keys got stuck ;)
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.
naa, my display now has cracks all over the left side. so usually it's 'why that accent? oh, it's just a crack..'
here it was the other way around : )
KeyUtils::setNotation(notation); | ||
// ... BEFORE invóking setNotation() which populates the QLineEdits from | ||
// the map retreived from KeyUtils. |
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.
and a typo
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
c270ba4
to
761487c
Compare
pa-ping |
Thank you! LGTM |
reported in the forums
https://mixxx.discourse.group/t/custom-key-notation-not-saved-after-restart-in-2-3-0/
custom key notation was not restored correctly.
code is simpler now, too.
Proposed Changelog entry