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

FEAT(client): Adds shortcut to listen to a channel #4636

Merged
merged 5 commits into from
Sep 9, 2022

Conversation

timjwkim
Copy link
Contributor

@timjwkim timjwkim commented Dec 15, 2020

Added a global shortcut that toggles listening to a specific channel targeted by the client.

Fixes #4486

Copy link
Member

@Krzmbrzl Krzmbrzl left a comment

Choose a reason for hiding this comment

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

Please ensure that your commit message follows the format specified in our commit guidelines

src/mumble/MainWindow.cpp Outdated Show resolved Hide resolved
src/mumble/MainWindow.cpp Outdated Show resolved Hide resolved
@Krzmbrzl
Copy link
Member

Krzmbrzl commented Jan 6, 2021

@timjwkim are you going to update this PR or shall I finish it up for you?

@timjwkim
Copy link
Contributor Author

My apologies, didn't get a chance to see the updates on this thread til now.
I will finish up the PR!

@Krzmbrzl
Copy link
Member

@timjwkim so?

@kol0
Copy link

kol0 commented Dec 29, 2021

@Krzmbrzl What can I do to push this change forward?
I would love to be able to set up channel listening with hotkeys.

@Krzmbrzl
Copy link
Member

Krzmbrzl commented Jan 1, 2022

@kol0 as it stands I think it would be fine, if you forked @timjwkim repo and pick up the work from where it was left. As long as you don't remove @timjwkim from the commit authorship (but add yourself), I think that should be fine.

Krzmbrzl and others added 4 commits September 9, 2022 13:03
When storing shortcuts in the database (which happens only for
server-specific shortcuts), the assumption has been that the type of the
stored shortcut is always "Whisper/Shout" because up to now this is the
only shortcut that can be server-specific.

However, this approach is not very future-proof, which is why this
commit makes sure that from now on, we explicitly store the type of the
shortcut as well.
Up to now the logic for clearing shortcut data upon a change in the
shortcut config window was to see if the type() of the current data
matches that of the shortcut's default data. However, for user-defined
types QVariant::type() always returns QVariant::UserType and thus
different user-defined types could not be distinguished.

If we instead use QVariant::userType(), this problem does no longer
exist.
This introduces a new global shortcut that can be used to start or stop
listening to a configured channel.

Fixes mumble-voip#4486

Co-Authored-By: timjwkim <timjwkim@umich.edu>
Copy link
Member

@Krzmbrzl Krzmbrzl left a comment

Choose a reason for hiding this comment

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

I took the liberty of finishing this PR myself. In the end it did turn out to be a bit more complicated than originally anticipated due to the way server-specfic global shortcuts were handled up to know.

@Krzmbrzl Krzmbrzl added client feature-request This issue or PR deals with a new feature GlobalShortcuts labels Sep 9, 2022
@Krzmbrzl Krzmbrzl merged commit 7c069ca into mumble-voip:master Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client feature-request This issue or PR deals with a new feature GlobalShortcuts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shortcut to listen to a channel
3 participants