Skip to content

Fix Preferences Buttons#2664

Merged
Be-ing merged 10 commits intomixxxdj:masterfrom
Holzhaus:preferences-reset-fixes
Apr 17, 2020
Merged

Fix Preferences Buttons#2664
Be-ing merged 10 commits intomixxxdj:masterfrom
Holzhaus:preferences-reset-fixes

Conversation

@Holzhaus
Copy link
Copy Markdown
Member

A bunch of pages don't implement slotCancel and slotResetToDefaults.

I implemented slotResetToDefaults for the colors and the controller pages and added a default slotCancel implementation that falls back to slotUpdate.

To prevent situations like this in the future, I deleted the default implementation for slotUpdate/slotApply/slotResetToDefault so that pages have to implement them.

For the LV2 page I added empty functions with a TODO comment for now, since I don't have any LV2 plugins and can't test it.

@Holzhaus Holzhaus added this to the 2.3.0 milestone Apr 14, 2020
@Holzhaus Holzhaus self-assigned this Apr 14, 2020
Comment thread src/preferences/dialog/dlgpreflv2.cpp

public slots:
// Apply changes to widget
/// Called when the preference dialog (not this page) is shown to the user.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really need to copy documentation from parent classes into every derived class?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, but it doesn't hurt either. I just replaced the already existing comments with better ones.

Comment thread src/preferences/dlgpreferencepage.h
Comment thread src/controllers/dlgprefcontrollers.cpp Outdated
Comment thread src/controllers/dlgprefcontrollers.cpp Outdated
Comment thread src/controllers/dlgprefcontroller.cpp
@Be-ing Be-ing merged commit f161e03 into mixxxdj:master Apr 17, 2020
@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Apr 17, 2020

Thank you for taking care of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants