Skip to content

Commit 60c96c9

Browse files
committed
Add drill preview
1 parent 831bd14 commit 60c96c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mainwindow.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ void MainWindow::getOutlineFile()
293293

294294
void MainWindow::getDrillFile()
295295
{
296-
getFilename(ui->drillLineEdit, tr("drill file"), excellon_file_filter);
296+
if (getFilename(ui->drillLineEdit, tr("drill file"), excellon_file_filter))
297+
if (ui->actionAutomatically_generate_previews->isChecked())
298+
generateImages();
297299
}
298300

299301
void MainWindow::getPreambleFile()
@@ -386,6 +388,7 @@ void MainWindow::imagesGenerated(int exitCode, QProcess::ExitStatus exitStatus)
386388
addItem(tr("Masked back"), "masked_back");
387389
addItem(tr("Input front"), "original_front");
388390
addItem(tr("Input back"), "original_back");
391+
addItem(tr("Input drill"), "original_drill");
389392
addItem(tr("Input outline"), fillOutline ? "outline_filled" : "original_outline");
390393
}
391394
else

0 commit comments

Comments
 (0)