mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Update displayed settings on startup.
Update the target values in the main window immediately on startup. Downloading the target information might not complete successfully, and in that case a previously selected target will not be shown. If the target information download finishes the displayed values are updated again (to show target status information). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31546 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2b04f7bba5
commit
f36f7825d7
1 changed files with 5 additions and 4 deletions
|
|
@ -107,6 +107,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
|
||||||
RegCloseKey(hk);
|
RegCloseKey(hk);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
updateSettings();
|
||||||
downloadInfo();
|
downloadInfo();
|
||||||
|
|
||||||
m_gotInfo = false;
|
m_gotInfo = false;
|
||||||
|
|
@ -242,7 +243,7 @@ void RbUtilQt::downloadDone(bool error)
|
||||||
buildInfo.open();
|
buildInfo.open();
|
||||||
ServerInfo::readBuildInfo(buildInfo.fileName());
|
ServerInfo::readBuildInfo(buildInfo.fileName());
|
||||||
buildInfo.close();
|
buildInfo.close();
|
||||||
|
|
||||||
// start bleeding info download
|
// start bleeding info download
|
||||||
bleeding = new HttpGet(this);
|
bleeding = new HttpGet(this);
|
||||||
connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool)));
|
connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool)));
|
||||||
|
|
@ -271,11 +272,11 @@ void RbUtilQt::downloadBleedingDone(bool error)
|
||||||
bleedingInfo.open();
|
bleedingInfo.open();
|
||||||
ServerInfo::readBleedingInfo(bleedingInfo.fileName());
|
ServerInfo::readBleedingInfo(bleedingInfo.fileName());
|
||||||
bleedingInfo.close();
|
bleedingInfo.close();
|
||||||
|
|
||||||
ui.statusbar->showMessage(tr("Download build information finished."), 5000);
|
ui.statusbar->showMessage(tr("Download build information finished."), 5000);
|
||||||
updateSettings();
|
updateSettings();
|
||||||
m_gotInfo = true;
|
m_gotInfo = true;
|
||||||
|
|
||||||
//start check for updates
|
//start check for updates
|
||||||
checkUpdate();
|
checkUpdate();
|
||||||
}
|
}
|
||||||
|
|
@ -345,7 +346,7 @@ void RbUtilQt::updateSettings()
|
||||||
HttpGet::setGlobalProxy(proxy());
|
HttpGet::setGlobalProxy(proxy());
|
||||||
HttpGet::setGlobalCache(RbSettings::value(RbSettings::CachePath).toString());
|
HttpGet::setGlobalCache(RbSettings::value(RbSettings::CachePath).toString());
|
||||||
HttpGet::setGlobalDumbCache(RbSettings::value(RbSettings::CacheOffline).toBool());
|
HttpGet::setGlobalDumbCache(RbSettings::value(RbSettings::CacheOffline).toBool());
|
||||||
|
|
||||||
if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) {
|
if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) {
|
||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
QMessageBox::information(this, tr("New installation"),
|
QMessageBox::information(this, tr("New installation"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue