| 584 | } |
| 585 | |
| 586 | void MainWindow::saveGCodeFile(int id) |
| 587 | { |
| 588 | qDebug(); |
| 589 | if (m_project->pinsPlacedMessage()) |
| 590 | return; |
| 591 | auto* file = m_project->file<GCode::File>(id); |
| 592 | QString name(QFileDialog::getSaveFileName(this, tr("Save GCode file"), |
| 593 | GCode::GCUtils::getLastDir().append(file->shortName()), |
| 594 | tr("GCode (*.%1)").arg(GCode::Settings::fileExtension()))); |
| 595 | |
| 596 | if (name.isEmpty()) |
| 597 | return; |
| 598 | |
| 599 | file->save(name); |
| 600 | } |
| 601 | |
| 602 | void MainWindow::saveGCodeFiles() |
| 603 | { |
nothing calls this directly
no test coverage detected