ListFiles: enumerate files lazily
This commit is contained in:
1 parent
e70cb2a44a
commit
b5185d56b2
7 files changed
+21
-29
No files matched your search
@@ -325,7 +325,7 @@ namespace VocaluxeLib.Songs
|
||||
{
|
||||
if (CoverFileName == "")
|
||||
{
|
||||
List<string> files = CHelper.ListImageFiles(Folder);
|
||||
IEnumerable<string> files = CHelper.ListImageFiles(Folder);
|
||||
foreach (String file in files)
|
||||
{
|
||||
if (file.ContainsIgnoreCase("[CO]") &&
|
||||
@@ -336,7 +336,7 @@ namespace VocaluxeLib.Songs
|
||||
|
||||
if (BackgroundFileNames.Count == 0)
|
||||
{
|
||||
List<string> files = CHelper.ListImageFiles(Folder);
|
||||
IEnumerable<string> files = CHelper.ListImageFiles(Folder);
|
||||
foreach (String file in files)
|
||||
{
|
||||
if (file.ContainsIgnoreCase("[BG]") &&
|
||||
|
||||
Reference in new issue
Block a user