fix: delete files is on main thread
This commit is contained in:
parent
a64ce8c7ac
commit
3adfb8a363
@ -73,7 +73,7 @@ private void RunDeleteTasks(List<Task> 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();
|
||||
|
Loading…
Reference in New Issue
Block a user