@@ -75,6 +75,11 @@ void MainWindow::on_openIMG_clicked() {
7575 if (filePath != " " ) osPath = filePath;
7676 ui->pathReadOut ->setText (osPath);
7777}
78+ void MainWindow::on_openDMG_clicked () {
79+ QString filePath = QFileDialog::getOpenFileName (this ,tr (" Select An Operating System File" ),QDir::homePath () + " /Downloads" ," DMG (*.dmg)" );
80+ if (filePath != " " ) osPath = filePath;
81+ ui->pathReadOut ->setText (osPath);
82+ }
7883void MainWindow::on_startStop_clicked () {
7984 // Run starting checks
8085 if (hasStarted) {
@@ -102,6 +107,7 @@ void MainWindow::on_startStop_clicked() {
102107 ui->devID ->setEnabled (false );
103108 ui->openISO ->setEnabled (false );
104109 ui->openIMG ->setEnabled (false );
110+ ui->openDMG ->setEnabled (false );
105111 ui->downloadOS ->setEnabled (false );
106112 ui->osSelector ->setEnabled (false );
107113 ui->allowNonExtern ->setEnabled (false );
@@ -243,6 +249,7 @@ void MainWindow::on_downloadOS_clicked() {
243249void MainWindow::on_allowNonExtern_clicked () { on_refreshDevs_clicked (); }
244250void MainWindow::on_actionSelectISO_triggered () { if (!hasStarted) on_openISO_clicked (); }
245251void MainWindow::on_actionSelectIMG_triggered () { if (!hasStarted) on_openIMG_clicked (); }
252+ void MainWindow::on_actionSelectDMG_triggered () { if (!hasStarted) on_openDMG_clicked (); }
246253void MainWindow::on_actionContact_triggered () { QMessageBox::about (this ," Contact" ," Email: contact@etcg.pw\n Website: http://www.etcg.pw" ); }
247254void MainWindow::on_actionCopyright_triggered () {
248255 QFile copyNotice (" ../Resources/copyrightNotice.txt" ),
0 commit comments