Fix pressing the play button sometimes going to follow mode#11609
Fix pressing the play button sometimes going to follow mode#11609
Conversation
|
Web viewer built successfully.
View image diff on kitdiff. Note: This comment is updated whenever you push a commit. |
| .clicked() | ||
| { | ||
| time_commands.push(TimeControlCommand::TogglePlayPause); | ||
| time_commands.push(TimeControlCommand::SetPlayState(PlayState::Playing)); |
There was a problem hiding this comment.
This looks suspicious (like we can't pause any more). There is probably a good reason for this, could we maybe document that?
Wumpf
left a comment
There was a problem hiding this comment.
so the bug was some timing issue in the command where toggle may cause issues somehow? Bit confused about why toggle doesn't work here. Also, isn't the play button changing its icon to pause... well clearly the code here is a pure play button as it always uses the icons::PLAY icon
Wumpf
left a comment
There was a problem hiding this comment.
right so actually we could pause with the play button here, that was actually nice. Do we have to break this?
Yeah, I made that change some time ago. Before which it just switched to playing mode. We could if we want to have a check like |
Toggle switches back to the last playing mode it seems, so if we were following last it switches to that. |
If we don't want that, we might fix it where it happens: |
I think we do want that. When pressing space I think it makes sense to switch back to following at least |
### Related * Part of #11585 ### What Fixes a bug where pressing the play button in some contexts sometimes went to follow mode instead of playing mode. --------- Co-authored-by: Andreas Reich <[email protected]>
Related
What
Fixes a bug where pressing the play button in some contexts sometimes went to follow mode instead of playing mode.