mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 08:39:04 +00:00
Add SelectNandDialog
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "common/file_util.h"
|
||||
#include "frontend/import_dialog.h"
|
||||
#include "frontend/main.h"
|
||||
#include "frontend/select_nand_dialog.h"
|
||||
#include "frontend/utilities.h"
|
||||
#include "ui_main.h"
|
||||
|
||||
@@ -205,6 +206,15 @@ void MainDialog::LaunchImportDialog() {
|
||||
"correctly."));
|
||||
}
|
||||
|
||||
if (config.nands.size() > 1) {
|
||||
SelectNandDialog dialog(this, config.nands);
|
||||
if (dialog.exec() != QDialog::Accepted) {
|
||||
return;
|
||||
}
|
||||
// Swap the selected NAND to the front
|
||||
std::swap(config.nands[0], config.nands[dialog.GetResult()]);
|
||||
}
|
||||
|
||||
ImportDialog dialog(this, config);
|
||||
dialog.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user