mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-13 07:47:07 +00:00
Increase save list population speed
This commit is contained in:
parent
7ec1cab9a7
commit
87056aaf7c
1 changed files with 2 additions and 2 deletions
|
@ -262,14 +262,14 @@ namespace PKHeX.WinForms
|
|||
LoadEntryInitial(dgData, list, sav1);
|
||||
Task.Run(async () => // load the rest async
|
||||
{
|
||||
while (!dgData.IsHandleCreated)
|
||||
await Task.Delay(15).ConfigureAwait(false);
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
var next = enumerator.Current;
|
||||
if (next == null)
|
||||
continue;
|
||||
var sav = new SavePreview(next, GetParentFolderName(next));
|
||||
while (!dgData.IsHandleCreated)
|
||||
await Task.Delay(100).ConfigureAwait(false);
|
||||
dgData.Invoke(new Action(() => LoadEntry(dgData, list, sav)));
|
||||
}
|
||||
enumerator.Dispose();
|
||||
|
|
Loading…
Reference in a new issue