Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CodeGenerator/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ private void GeneratorCode()
_size = Convert.ToInt32(_fontSize);
}

//按照设置的文件后缀遍历文件
_generateFilePaths = _folderPath.GetFilesBySuffix(suffixSet);
//从用户筛选后的文件列表中,按照设置的文件后缀遍历文件
_generateFilePaths = FileCollection.Where(f => suffixSet.Contains(f.Extension)).Select(f => f.FullName).ToList();
if (!_generateFilePaths.Any())
{
MessageBox.Show("没找检索到符合条件的代码源文件", "提示", MessageBoxButton.OK, MessageBoxImage.Error);
Expand Down Expand Up @@ -518,4 +518,4 @@ private void Worker_OnRunWorkerCompleted(object sender, RunWorkerCompletedEventA
Growl.Success($"软著代码生成完毕,保存在{_outputFilePath}");
}
}
}
}