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
fix GUI states of Library feature buttons #2628
Conversation
This prevents inifit loop issues when real click events and programmatic QPushButton::setChecked() calls conflict: * clicked(bool checked) is only emitted on mouse clicks * toggled(bool checked) is emitted both on mouse clicks and setChecked() calls
Redirect toggle request to RecordingManager::slotToggleRecording() and let slotRecordingEnabled() handle the button update.
According to the removed ToDo, doing this at feature init would extend the skin loading time.
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 so far, thank you. Can you also disable the AutoDJ button when the AutoDJ queue is empty?
Also, where's the analyze button? I didn't test it because I couldn't find it 🤷♂️
Co-Authored-By: Jan Holthuis <holthuis.jan@googlemail.com>
Co-Authored-By: Jan Holthuis <holthuis.jan@googlemail.com>
Co-Authored-By: Jan Holthuis <holthuis.jan@googlemail.com>
Looking closer, we'd need to connect |
Shouldn't there be a connection anyway? How is AutoDJ notified that the value has been changed while it's running? |
AutoDJProcessor reads the config when a button is pressed, and when the next track is requested. |
Anyway, would have been nice but maybe this is more trouble than it's worth. |
Ok. Then just leave it as-is. |
LGTM. Test fails are unrelated. |
fixes https://bugs.launchpad.net/mixxx/+bug/1854160
Analyze
Analyze
button is now disabled by default until tracks are selected.It can now be checked which also applies the 'active' style from qss when analysis is running.
(before, the enabled state was not synchronised until you changed the view from
New
toAll
)The table model is now loaded when you switch to Analysis for the first time, not on skin load.
Recording
The Recording toggle and the info labels are now always synced to actual recording state and styled correctly, nomatter if the recording was toggled via Ctrl+R, menubar toggle, toolbar toggle or Rec toggle itself, even after changing the skin.
I've split up the GUI labels to emphasize the file name.
In DlgAutoDJ I switched to
clicked()
signal to prevent any issues like with Recording, and applied the new signal/slot syntax.