Skip to content

Commit

Permalink
[installer] [target] Vero 2: add warning before erasing NAND
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
  • Loading branch information
samnazarko committed Aug 22, 2016
1 parent 0cd5f13 commit 668b3d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions installer/target/qt_target/qt_target_installer/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ void MainWindow::install()
system("/bin/sleep 1");
}
}
if (utils->getOSMCDev() == "vero2")
{
for (int i = 0; i <= 60; i++)
{
ui->statusLabel->setText(tr("You have ") + + QString::number(60 - i) + " " + ("seconds to unpower before NAND is formatted"));
qApp->processEvents();
system("/bin/sleep 1");
}
}
}
/* Bring up network if using NFS */
if (useNFS)
Expand Down

0 comments on commit 668b3d9

Please sign in to comment.