-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
FEAT(client): Toggle positional audio shortcut #6133 #6326
FEAT(client): Toggle positional audio shortcut #6133 #6326
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.
Otherwise, your merge request looks good so far. In the end you will need to add a translation commit. But first you just need to worry about implementing the logic :)
I added another commit that mimics the function on_gsAudioTTS_triggered(bool down, QVariant) as suggested. Some of the checks are still failing and, as a novice, I really have no idea what that means for my commit. Are there errors in my addition that need to be fixed? |
Please squash your two existing commits into one. While you are at it you can also include a |
I've been messing with this for a while now and I cannot get the script to run because it cannot find Lupdate. I have QT for open source on Windows but I have never used the program before. I already squished the commits. Is there a way I can perform the function of |
Not sure what the issue is, but I certainly have no idea how to get this to work on windows. No problem though, I will gladly add the translation commit for you. You just need to update your branch to include the single squashed commit :) |
5bd654b
to
71d7bcf
Compare
One line of your code change was not following the clang-10 format:
For the test to pass, that needs to be changed as well. I pushed the translation commit already. Is your git-fu strong enough to edit the code commit without touching the translation commit 😅 ? |
Huh that is weird. I copied and pasted the above shortcut initializations to ensure my formatting was the exact same, but I guess that did not work. It also looks correct on my machine, but who knows. Are the lines with pluses what I should change it to? Also, I can guarantee you that I will find a way to mess up your translation commit, but I will try lol. |
The snippet above is a diff. Your lines (the ones with the For this line in particular that just means it is not happy with the line length. Since the name of the variable changed, it does not want it to be formatted as the shortcut above. There is a tool to automate this ( If you follow the link of the failing test here on GitHub https://github.com/mumble-voip/mumble/actions/runs/7775343666/job/21201217927?pr=6326 you can also see where the test complains about the line. |
96b11c8
to
c9dad65
Compare
Just pushed it again. This is what the code looks like on my machine (hopefully it is correct): |
Sometimes a project agrees to ditch subjective code beauty for pragmatic auto-formatting :) Mumble is such a project |
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.
Compiled and tested*, LGTM
- The positional audio setting is correctly toggled. I was not able to test it with the manual link plugin in a real world scenario, because that is currently broken on master
I just saw that the odd naming of toggle-functions is also present in existing functions. Guess that slipped under my radar. Nonetheless, we should strive to have new code match high standards :) |
@GrossTrevor Hey, I know it is past your assignment due date, but would you be able to apply the requested changes? We can do it for you, if you do not have the time or motivation for it, but your commits might lose some authorship information. Maybe you need the proof that your commit was actually merged or something 😅 Anyway, the other existing methods have already been refactored on master ( 9b9d88c ) so you can see exactly how it is now supposed to look :) |
cb63478
to
e6f74a2
Compare
Added new global shortcut that toggles the state of positional audio Fixes mumble-voip#6133
e6f74a2
to
be0ee13
Compare
Thank you for having worked on this 👍 |
Constructed framework of a new shortcut to toggle positional audio, but do not know what functions to use or where to go from here. This is a work in progress that I would need some help with. Forgive me, I'm afraid this is my first open-source commit like this. This is concerning issue #6133 to which I am assigned.
This is for a school assignment due Friday, February 9th, so please provide some guidance as soon as possible if you can. Thanks!