diff --git a/Assets/Scripts/StorageManager.cs b/Assets/Scripts/StorageManager.cs index 31711bc..5ce5b80 100644 --- a/Assets/Scripts/StorageManager.cs +++ b/Assets/Scripts/StorageManager.cs @@ -73,7 +73,7 @@ private void RunDeleteTasks(List deleteTasks, Action callback_OnFinish) int taskCount = deleteTasks.Count; Debug.Log($"There are {taskCount} files to delete", this); - Task.WhenAll(deleteTasks).ContinueWith(_ => + Task.WhenAll(deleteTasks).ContinueWithOnMainThread(_ => { Debug.Log($"all delete tasks are done", this); callback_OnFinish?.Invoke();