mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Sort list of files and archives.
This commit is contained in:
@@ -86,7 +86,7 @@ public sealed class FileImporter(bool onlyKnown, bool deleteAfterImport)
|
|||||||
Maximum = Files.Count
|
Maximum = Files.Count
|
||||||
});
|
});
|
||||||
|
|
||||||
ConcurrentBag<string> files = [];
|
ConcurrentBag<string> files = [];
|
||||||
ConcurrentBag<string> archives = [];
|
ConcurrentBag<string> archives = [];
|
||||||
|
|
||||||
Parallel.ForEach(Files,
|
Parallel.ForEach(Files,
|
||||||
@@ -139,8 +139,8 @@ public sealed class FileImporter(bool onlyKnown, bool deleteAfterImport)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Files = files.ToList();
|
Files = files.Order().ToList();
|
||||||
Archives = archives.ToList();
|
Archives = archives.Order().ToList();
|
||||||
|
|
||||||
SetMessage?.Invoke(this,
|
SetMessage?.Invoke(this,
|
||||||
new MessageEventArgs
|
new MessageEventArgs
|
||||||
|
|||||||
Reference in New Issue
Block a user