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

Don't force recreating the map object and associated layer state #2718

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

simonpoole
Copy link
Collaborator

If Main has been destroyed, both the Map and Logic objects may still be available and current, so we now reuse them instead of forcing recreation.

This resolves race conditions that could be caused by selecting and loading files into layers via the system file picker that could lead to Main being removed.

@simonpoole simonpoole force-pushed the retain_map_object_if_it_still_exists branch from 1d58a2f to f77bd76 Compare November 9, 2024 13:51
If Main has been destroyed, both the Map and Logic objects may still be
available and current, so we now reuse them instead of forcing
recreation.

This resolves race conditions that could be caused by selecting and
loading files into layers via the system file picker that could lead to
Main being removed.
@simonpoole simonpoole force-pushed the retain_map_object_if_it_still_exists branch from f77bd76 to 993074b Compare November 10, 2024 19:11
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