Skip to content

Commit

Permalink
Don't add packages in main thread on finish load
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyDuchess committed Jun 29, 2024
1 parent 913a87d commit 8f28284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/OpenTS2/Content/ContentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ await Task.WhenAll(tasks).ContinueWith((task) =>
AddPackage(element.file);
}
loadProgress.Percentage = 1f;
}, TaskScheduler.FromCurrentSynchronizationContext());
});
}

/// <summary>
Expand Down

0 comments on commit 8f28284

Please sign in to comment.