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);
|
||||
}
|
||||
#endif
|
||||
updateSettings();
|
||||
downloadInfo();
|
||||
|
||||
m_gotInfo = false;
|
||||
|
|
@ -242,7 +243,7 @@ void RbUtilQt::downloadDone(bool error)
|
|||
buildInfo.open();
|
||||
ServerInfo::readBuildInfo(buildInfo.fileName());
|
||||
buildInfo.close();
|
||||
|
||||
|
||||
// start bleeding info download
|
||||
bleeding = new HttpGet(this);
|
||||
connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool)));
|
||||
|
|
@ -271,11 +272,11 @@ void RbUtilQt::downloadBleedingDone(bool error)
|
|||
bleedingInfo.open();
|
||||
ServerInfo::readBleedingInfo(bleedingInfo.fileName());
|
||||
bleedingInfo.close();
|
||||
|
||||
|
||||
ui.statusbar->showMessage(tr("Download build information finished."), 5000);
|
||||
updateSettings();
|
||||
m_gotInfo = true;
|
||||
|
||||
|
||||
//start check for updates
|
||||
checkUpdate();
|
||||
}
|
||||
|
|
@ -345,7 +346,7 @@ void RbUtilQt::updateSettings()
|
|||
HttpGet::setGlobalProxy(proxy());
|
||||
HttpGet::setGlobalCache(RbSettings::value(RbSettings::CachePath).toString());
|
||||
HttpGet::setGlobalDumbCache(RbSettings::value(RbSettings::CacheOffline).toBool());
|
||||
|
||||
|
||||
if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) {
|
||||
QApplication::processEvents();
|
||||
QMessageBox::information(this, tr("New installation"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue