Skip to content

Commit

Permalink
fix unhandled expection when removing rows, use hashing setting in pa…
Browse files Browse the repository at this point in the history
…ge-generation procs
  • Loading branch information
t0815 committed Sep 6, 2024
1 parent cb5471b commit c2dd2a0
Show file tree
Hide file tree
Showing 5 changed files with 294 additions and 293 deletions.
17 changes: 8 additions & 9 deletions MyCBZ/Forms/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions MyCBZ/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ private void AddFolderToolStripMenuItem_Click(object sender, EventArgs e)
var maxIndex = PagesList.Items.Count - 1;
var newIndex = maxIndex < 0 ? 0 : maxIndex;
var files = Program.ProjectModel.LoadDirectory(AddPagesDirDialog.SelectedPath);
Program.ProjectModel.ParseFiles(files);
Program.ProjectModel.ParseFiles(files, Win_CBZ.Win_CBZSettings.Default.CalculateHash);
//if (files.Count > 0)
//{
// Program.ProjectModel.AddImages(files, NewIndex);
Expand Down Expand Up @@ -2617,7 +2617,7 @@ private void AddFilesToolStripMenuItem_Click(object sender, EventArgs e)
recentPath = new LocalFile(OpenImagesDialog.FileName);
Win_CBZSettings.Default.RecentAddImagePath = recentPath.FilePath;

Program.ProjectModel.ParseFiles(new List<String>(OpenImagesDialog.FileNames));
Program.ProjectModel.ParseFiles(new List<String>(OpenImagesDialog.FileNames), Win_CBZSettings.Default.CalculateHash);
}
}

Expand Down Expand Up @@ -3053,7 +3053,7 @@ private void RemoveMetadataRowBtn_Click(object sender, EventArgs e)

if (index > -1)
{
var key = row.Cells[0].Value.ToString();
var key = row.Cells[0].Value?.ToString();
if (ToolBarSearchInput.Text.Length > 0)
{

Expand Down
Loading

0 comments on commit c2dd2a0

Please sign in to comment.