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

(fix)/UX: Pref controllers: notify of pending changes when closing preferences #14234

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Jan 26, 2025

Fixes #14220

On top a small UX fix for the standard QMessageBox behavior:
if there is no button with RejectRole or NoRole, QMessageBox ignores the Esc key and pressing the X window button, i.e. dialog can not be closed.
See https://doc.qt.io/qt-6/qmessagebox.html#escapeButton
Workaround is to add a Cancel button and hide it. See commit for more info.

(workaround is currently to click "Save As", then cancel that dialog)

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

🤷 Thank you.

@ronso0
Copy link
Member Author

ronso0 commented Jan 28, 2025

merge?

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

LGTM. Works and looks good

@daschuer daschuer merged commit 378cbc4 into mixxxdj:2.5 Jan 28, 2025
13 checks passed
@ronso0 ronso0 deleted the pref-controller-pending-changes-fix branch January 28, 2025 22:20
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.

Controller preferences doesn't handle unsaved mapping change correctly
3 participants