mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 19:50:45 +00:00
Add delay to SD autoscanner
This commit is contained in:
parent
87ca2ebf7e
commit
ec0ed2359c
@ -524,7 +524,6 @@ QStringList MainWindow::detectCPAPCards()
|
|||||||
QStringList AutoScannerPaths = getDriveList();
|
QStringList AutoScannerPaths = getDriveList();
|
||||||
|
|
||||||
Q_FOREACH(const QString &path, AutoScannerPaths) {
|
Q_FOREACH(const QString &path, AutoScannerPaths) {
|
||||||
qDebug() << "Scanning" << path;
|
|
||||||
// Scan through available machine loaders and test if this folder contains valid folder structure
|
// Scan through available machine loaders and test if this folder contains valid folder structure
|
||||||
Q_FOREACH(MachineLoader * loader, loaders) {
|
Q_FOREACH(MachineLoader * loader, loaders) {
|
||||||
if (loader->Detect(path)) {
|
if (loader->Detect(path)) {
|
||||||
@ -540,7 +539,7 @@ QStringList MainWindow::detectCPAPCards()
|
|||||||
if (el > timeout) break;
|
if (el > timeout) break;
|
||||||
if (!popup.isVisible()) break;
|
if (!popup.isVisible()) break;
|
||||||
// needs a slight delay here
|
// needs a slight delay here
|
||||||
|
QThread::msleep(200);
|
||||||
} while (datapaths.size() == 0);
|
} while (datapaths.size() == 0);
|
||||||
popup.hide();
|
popup.hide();
|
||||||
popup.disconnect(&skipbtn, SIGNAL(clicked()), &popup, SLOT(hide()));
|
popup.disconnect(&skipbtn, SIGNAL(clicked()), &popup, SLOT(hide()));
|
||||||
|
Loading…
Reference in New Issue
Block a user