mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Add some more bootloader install progress messages and call processEvents() more often before performing player disk accesses.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19724 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f5ab7c028e
commit
c1b4745d7c
6 changed files with 16 additions and 0 deletions
|
@ -81,6 +81,7 @@ void BootloaderInstallBase::downloadBlFinish(bool error)
|
|||
else
|
||||
emit logItem(tr("Download finished."), LOGOK);
|
||||
|
||||
QCoreApplication::processEvents();
|
||||
m_blversion = m_http.timestamp();
|
||||
emit downloadDone();
|
||||
}
|
||||
|
@ -134,6 +135,8 @@ int BootloaderInstallBase::logInstall(LogMode mode)
|
|||
}
|
||||
s.sync();
|
||||
|
||||
emit logItem(tr("Installation log created"), LOGOK);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ bool BootloaderInstallFile::install(void)
|
|||
void BootloaderInstallFile::installStage2(void)
|
||||
{
|
||||
emit logItem(tr("Installing Rockbox bootloader"), LOGINFO);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
// if an old bootloader is present (Gigabeat) move it out of the way.
|
||||
QString fwfile(resolvePathCase(m_blfile));
|
||||
|
|
|
@ -118,6 +118,7 @@ bool BootloaderInstallHex::install(void)
|
|||
void BootloaderInstallHex::installStage2(void)
|
||||
{
|
||||
emit logItem(tr("Adding bootloader to firmware file"), LOGINFO);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
// local temp file
|
||||
QTemporaryFile tempbin;
|
||||
|
|
|
@ -82,6 +82,8 @@ void BootloaderInstallIpod::installStage2(void)
|
|||
{
|
||||
struct ipod_t ipod;
|
||||
|
||||
emit logItem(tr("Installing Rockbox bootloader"), LOGINFO);
|
||||
QCoreApplication::processEvents();
|
||||
if(!ipodInitialize(&ipod)) {
|
||||
emit done(true);
|
||||
return;
|
||||
|
@ -137,6 +139,8 @@ void BootloaderInstallIpod::installStage2(void)
|
|||
bool BootloaderInstallIpod::uninstall(void)
|
||||
{
|
||||
struct ipod_t ipod;
|
||||
emit logItem(tr("Uninstalling bootloader"), LOGINFO);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
if(!ipodInitialize(&ipod)) {
|
||||
emit done(true);
|
||||
|
|
|
@ -41,6 +41,7 @@ bool BootloaderInstallMi4::install(void)
|
|||
void BootloaderInstallMi4::installStage2(void)
|
||||
{
|
||||
emit logItem(tr("Installing Rockbox bootloader"), LOGINFO);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
// move old bootloader out of the way
|
||||
QString fwfile(resolvePathCase(m_blfile));
|
||||
|
|
|
@ -82,6 +82,9 @@ void BootloaderInstallSansa::installStage2(void)
|
|||
struct sansa_t sansa;
|
||||
sansa_scan(&sansa);
|
||||
|
||||
emit logItem(tr("Installing Rockbox bootloader"), LOGINFO);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
if(sansa_open(&sansa, 0) < 0) {
|
||||
emit logItem(tr("could not open Sansa"), LOGERROR);
|
||||
emit done(true);
|
||||
|
@ -146,6 +149,9 @@ bool BootloaderInstallSansa::uninstall(void)
|
|||
{
|
||||
struct sansa_t sansa;
|
||||
|
||||
emit logItem(tr("Uninstalling bootloader"), LOGINFO);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
if(sansa_scan(&sansa) != 1) {
|
||||
emit logItem(tr("Can't find Sansa"), LOGERROR);
|
||||
emit done(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue