-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Fixes popup being invisible forever after closing once #6347
Conversation
if popup is None: | ||
if self._panel.visible: | ||
self._panel.visible = False | ||
return | ||
|
||
if event is not None: | ||
position = self._get_position(event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this down inside existing popup since it's unused if there's no existing popup.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6347 +/- ##
==========================================
- Coverage 88.50% 88.47% -0.03%
==========================================
Files 323 323
Lines 68093 68125 +32
==========================================
+ Hits 60263 60275 +12
- Misses 7830 7850 +20 ☔ View full report in Codecov by Sentry. |
Thank you for the quick fix.
Nice to be back 🙂 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Changes from #6207 made some examples not useful
This closes #6342 by:
if popup_is_callable and not popup_pane.visible
, or else it'll be invisible forever if user has aon_click(layout.visible = False)
like the example belowHere's a demo applying these fixes:
Screen.Recording.2024-07-29.at.10.44.53.AM.mov
Demo after fix:
Screen.Recording.2024-07-29.at.10.46.39.AM.mov
These changes also keep compatibility with holonote
Screen.Recording.2024-07-29.at.10.48.27.AM.mov
:) and welcome back Simon