moved notifyExtractionResult to ui.h (utils)

This commit is contained in:
Luca D'Amico
2024-08-20 19:21:20 +02:00
parent a2739a9ca8
commit c453236abd
4 changed files with 17 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
#include "./../../mainwindow.h"
#include "./../../ui_mainwindow.h"
#include "./../../utils/filepicker.h"
#include "./../../utils/ui.h"
void MainWindow::on_loadRomBtn_clicked()
@@ -137,15 +138,3 @@ void MainWindow::on_unpackerDumpEverythingBtn_clicked()
if (!dirPath.isNull())
notifyExtractionResult(dumpEverything(dirPath));
}
void MainWindow::notifyExtractionResult(bool result)
{
if(result)
{
QMessageBox::information(this, tr("NDS Factory"), tr("Extraction completed!"));
}
else
{
QMessageBox::critical(this, tr("NDS Factory"), tr("Error during the extraction!"));
}
}