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

Solved Multiple StatsWindow instances created when clicking the "Display statistics" button repeatedly #4558

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

SujoyBose
Copy link
Contributor

Explanation of the Fix:

  • The updated code checks if activity.statsWindow is already open before creating a new one.
  • If the window exists (activity.statsWindow) and is open (activity.statsWindow.isOpen), it does nothing.
  • If it's not open, a new StatsWindow instance is created.

Fixes #4557

Copy link

✅ All Jest tests passed! This PR is ready to merge.

@walterbender walterbender merged commit 8f01e24 into sugarlabs:master Mar 22, 2025
4 of 5 checks passed
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.

Bug: Multiple StatsWindow instances created when clicking the "Display statistics" button repeatedly
2 participants