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

Enable play/pause replay from keyboard #403

Merged
merged 2 commits into from
Oct 26, 2022

Conversation

lubiedo
Copy link
Contributor

@lubiedo lubiedo commented Jul 8, 2022

Simple change to play or pause reproduction of a replay via the space bar.

Copy link
Member

@obilodeau obilodeau left a comment

Choose a reason for hiding this comment

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

It's a great UX improvement! I assume you tested it to work, right?

Can you add a CHANGELOG entry? I'll merge right after.

pyrdp/player/RDPMITMWidget.py Show resolved Hide resolved
pyrdp/ui/PlayPauseButton.py Show resolved Hide resolved
@@ -20,6 +20,7 @@ def __init__(self, parent: QWidget = None, playText = "Play", pauseText = "Pause
self.pauseText = pauseText
self.playing = False
self.setPlaying(self.playing)
self.setFixedWidth(100)
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This gets a constant fixed width to the play/pause button as, before this, when the label toggled from Play to Pause the width changed. It is more of a design change.

@lubiedo
Copy link
Contributor Author

lubiedo commented Jul 13, 2022

Yes, tested it against replays and it worked without any issue. Also, added the CHANGELOG entry on 465291b.

Copy link
Member

@obilodeau obilodeau left a comment

Choose a reason for hiding this comment

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

Good to go

@obilodeau obilodeau merged commit 9b2290a into GoSecure:master Oct 26, 2022
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.

2 participants