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 closing an empty temporary document #1538

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Feb 8, 2025

Fixes #1536

For empty temporary documents, async code intended to be called once for a closing document was being called twice. For obscure reasons this lead to the n_pages property of Hdy.TabView becoming different from the actual number of pages and hence the issue.

An existing private flag was made public and used to prevent the responsible code being called twice.

@jeremypw jeremypw requested a review from a team February 8, 2025 16:40
@jeremypw jeremypw merged commit 46258fa into master Feb 8, 2025
4 of 6 checks passed
@jeremypw jeremypw deleted the jeremypw/open-after-close-unnamed branch February 8, 2025 17:05
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.

Cannot open docs after opening and closing a new document
2 participants