-
-
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
fix the preferences menu and opening the settings directory on macOS #11679
fix the preferences menu and opening the settings directory on macOS #11679
Conversation
m0dB
commented
Jun 23, 2023
•
edited
Loading
edited
- fix the Preferences menu by avoiding text-heuristics treating "Settings directory" as Preferences (macOS), by change the default menu role QAction::TextHeuristicsRole to QAction::NoRole
- fix opening the folder by using QUrl::fromLocalFile (this required changing the argument of slotVisitUrl from QString to QUrl, which makes more sense anyway)
I confirm, that this PR works on Windows as 2.4. |
I agree that Mixxx settings directory sounds better. |
I don't know about string freeze, but mind you that this was added only days ago. |
Let me see if I can avoid the Settings / Preferences mix-up without changing the string at all. |
…u item, as it makes take the role of Preferences; fix opening the folder by using QUrl::fromLocalFile
dd292aa
to
7c67396
Compare
Ok, fixed without having to change the string (aka fixed correctly)
By default the menuRole is QAction::TextHeuristicRole which means that "This action should be put in the application menu based on the action's text as described in the QMenuBar documentation." Which lead to "&Settings directory" being treated as Preferences. |
LGTM! Works on Windows11 as expected. Waiting for CI. Thank you! |
@m0dB Thanks for debugging this! No regression on Linux afaict. LGTM Lesson learned: any PR touching the menubar should be tested manually on macOS @mixxxdj/developers @JoergAtGithub Feel free to rename to "Mixxx settings directory". Better sooner than later, before translators start to work on 2.4-beta. |
Now that this has been fixed without renaming, I don't think renaming to "Mixxx settings ..." is necessary and it actually seems a bit redundant. It should be pretty obvious what settings it refers too! |
"Settings directory" and "Mixxx settings directory" work both for me. Just "User settings directory" sounds wrong to me. |
Sorry introducing the regression. Many thanks for fixing it this quickly.
Agree. I'll be more careful next time. |