Skip to content

Commit

Permalink
model: Mark Project constructor with @fg_affinity to prevent it from …
Browse files Browse the repository at this point in the history
…being created accidentally on a background thread
  • Loading branch information
davidfstr committed Jan 8, 2024
1 parent 7c55797 commit ff5f607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crystal/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class Project(ListenableMixin):

# === Load ===

@fg_affinity
def __init__(self,
path: str,
progress_listener: Optional[OpenProjectProgressListener]=None,
Expand Down

0 comments on commit ff5f607

Please sign in to comment.