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 stale panel data being copied when copying panels in live editing #320

Merged
merged 1 commit into from
Jul 28, 2020

Conversation

reupen
Copy link
Owner

@reupen reupen commented Jul 23, 2020

This fixes bugs in the standard splitter panels that caused stale panel configuration data to be copied when a panel was copy and pasted in live editing.

This fixes bugs in the standard splitter panels that caused stale panel configuration data to be copied when a panel was copy and pasted in live editing.
@reupen reupen marked this pull request as ready for review July 28, 2020 20:34
@reupen reupen merged commit 8ac7bde into master Jul 28, 2020
@reupen reupen deleted the bugfix/copy-panel branch July 28, 2020 20:34
reupen added a commit that referenced this pull request Mar 28, 2021
This reworks the changes that were made in #320 so that the standard splitters no longer refresh a panel's configuration data when `splitter_window::get_panel()` is called.

This is to avoid panel configuration data being unnecessarily queried at strange moments (e.g. when the main window becomes inactive).

Instead, a refresh is done when a panel is being copied, which still fixes the original problem of stale configuration data being copied when a panel is copied during live editing.
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.

1 participant