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

fix:disable save button when the project is playing (#4239) #4241

Closed
wants to merge 2 commits into from

Conversation

BeNikk
Copy link
Contributor

@BeNikk BeNikk commented Jan 7, 2025

Description

This PR addresses issue (#4239) by disabling the save and record buttons while a project is playing to prevent buggy behavior.

Changes made

  • Added functionality to disable save and record buttons when play is clicked
  • Re-enable save buttons and record buttons when playback stops

Screenshot

Screencast.from.08-01-25.02.33.14.AM.IST.webm

@BeNikk BeNikk marked this pull request as draft January 7, 2025 17:03
@BeNikk BeNikk marked this pull request as ready for review January 7, 2025 21:09
@BeNikk
Copy link
Contributor Author

BeNikk commented Jan 7, 2025

@pikurasa @walterbender I think disabling buttons during play can be achieved like this as discussed in #4239

@walterbender
Copy link
Member

The save project button was not disabled (at least for me on FireFox/Fedora). How did you test?

@BeNikk
Copy link
Contributor Author

BeNikk commented Jan 8, 2025

it looks like the buttons are getting re-enabled after 2 seconds because of a setTImeout function that debounces the play button, i will have a look,

@BeNikk BeNikk marked this pull request as draft January 8, 2025 20:02
@BeNikk BeNikk closed this Jan 9, 2025
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