mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Show status about downloading build information in the status bar.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23369 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
740562d419
commit
6f9724706f
1 changed files with 4 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ void RbUtilQt::downloadInfo()
|
||||||
daily->setCache(true);
|
daily->setCache(true);
|
||||||
else
|
else
|
||||||
daily->setCache(false);
|
daily->setCache(false);
|
||||||
|
ui.statusbar->showMessage(tr("Downloading build information, please wait ..."));
|
||||||
qDebug() << "[RbUtil] downloading build info";
|
qDebug() << "[RbUtil] downloading build info";
|
||||||
daily->setFile(&buildInfo);
|
daily->setFile(&buildInfo);
|
||||||
daily->getFile(QUrl(RbSettings::value(RbSettings::ServerConfUrl).toString()));
|
daily->getFile(QUrl(RbSettings::value(RbSettings::ServerConfUrl).toString()));
|
||||||
|
|
@ -184,6 +185,7 @@ void RbUtilQt::downloadDone(bool error)
|
||||||
{
|
{
|
||||||
if(error) {
|
if(error) {
|
||||||
qDebug() << "[RbUtil] network error:" << daily->error();
|
qDebug() << "[RbUtil] network error:" << daily->error();
|
||||||
|
ui.statusbar->showMessage(tr("Can't get version information!"));
|
||||||
QMessageBox::critical(this, tr("Network error"),
|
QMessageBox::critical(this, tr("Network error"),
|
||||||
tr("Can't get version information."));
|
tr("Can't get version information."));
|
||||||
return;
|
return;
|
||||||
|
|
@ -217,6 +219,7 @@ void RbUtilQt::downloadDone(bool error)
|
||||||
bleeding->setCache(true);
|
bleeding->setCache(true);
|
||||||
bleeding->setFile(&bleedingInfo);
|
bleeding->setFile(&bleedingInfo);
|
||||||
bleeding->getFile(QUrl(RbSettings::value(RbSettings::BleedingInfo).toString()));
|
bleeding->getFile(QUrl(RbSettings::value(RbSettings::BleedingInfo).toString()));
|
||||||
|
ui.statusbar->showMessage(tr("Downloading build information, please wait ..."));
|
||||||
|
|
||||||
if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) {
|
if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) {
|
||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
|
|
@ -249,6 +252,7 @@ void RbUtilQt::downloadBleedingDone(bool error)
|
||||||
versmap.insert("bleed_rev", info.value("bleeding/rev").toString());
|
versmap.insert("bleed_rev", info.value("bleeding/rev").toString());
|
||||||
versmap.insert("bleed_date", info.value("bleeding/timestamp").toString());
|
versmap.insert("bleed_date", info.value("bleeding/timestamp").toString());
|
||||||
qDebug() << "[RbUtil] version map:" << versmap;
|
qDebug() << "[RbUtil] version map:" << versmap;
|
||||||
|
ui.statusbar->showMessage(tr("Download build information finished."), 5000);
|
||||||
|
|
||||||
m_gotInfo = true;
|
m_gotInfo = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue