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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Stop command to Control menu #4213

Merged
merged 1 commit into from Apr 11, 2023

Conversation

toupeira
Copy link
Contributor

@toupeira toupeira commented Nov 29, 2022

Check-list

  • There is a linked issue discussing the motivations for this feature or bugfix
  • [-] Unit tests have been added where possible
    • tests/test_qltk_quodlibetwindow.py is currently very barebones, so I figured I'll skip this 馃槈
    • Tested manually, seems to work fine.
  • [-] I've added / updated documentation for any user-facing features.
    • Did a quick search but couldn't find any description of the Control menu.
  • Performance seems to be comparable or better than current main

What this change is adding / fixing

This adds a menu item to fully stop playback, which is currently only available through the CLI, and some other integrations like MPRIS.

Screenshot:

image

act = Action(name="Stop", label=_("Stop"),
icon_name=Icons.MEDIA_PLAYBACK_STOP)
act.connect('activate', self.__stop)
ag.add_action(act)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

question: Should we add a keyboard shortcut?

Some suggestions: Ctrl+Shift+Space, Ctrl+Escape

Copy link
Member

Choose a reason for hiding this comment

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

Maybe yes. Not Ctrl+Escape I'd say, that's too weird and might do things in some WMs

@toupeira toupeira mentioned this pull request Nov 29, 2022
This adds a menu item to fully stop playback, which is currently only
available through the CLI, and some other integrations like MPRIS.
@declension
Copy link
Member

Generally I think this is worth a try. If people don't want it they won't have to use it

@declension declension merged commit c1c6111 into quodlibet:main Apr 11, 2023
@declension
Copy link
Member

Thanks

@toupeira toupeira deleted the feature/add-stop-menuitem branch December 1, 2023 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants