Skip to content

Conversation

JoeZiminski
Copy link
Member

@JoeZiminski JoeZiminski commented Jul 31, 2025

This PR closes #542 by refreshing only the datatype-checkboxes widget rather than the entire screen, so that content of other widgets is not deleted.

Previously the entire tab was recomposed after the datatype checkboxes were changed, meaning that content in all other widgets was lost. Now, only the datatype checkboxes are refreshed. As far as I can tell, to achieve this in textual, the widget has to be entirely removed and then re-initialized.

This PR adds to the tests ensuring that content in non-datatype checkbox widgets is not deleted after opening the display datatype checkbox window. No documentation is needed.

@JoeZiminski
Copy link
Member Author

Hey @IgorTatarnikov thanks for raising the issue on this, is this working for you?

Copy link
Member

@IgorTatarnikov IgorTatarnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

@IgorTatarnikov IgorTatarnikov merged commit 41fc9f1 into main Aug 26, 2025
16 checks passed
@IgorTatarnikov IgorTatarnikov deleted the only_refresh_datatype_checkbox branch August 26, 2025 08:38
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.

Fields in Create Folders reset after clicking Displayed Datatypes
2 participants