Check the themes site response for a status message and display it after the themes window opens.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20473 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
694c830121
commit
fb3e163796
1 changed files with 11 additions and 0 deletions
|
@ -133,6 +133,17 @@ void ThemesInstallWindow::downloadDone(bool error)
|
|||
|
||||
iniDetails.endGroup();
|
||||
}
|
||||
// check if there's a themes "MOTD" available
|
||||
if(iniDetails.contains("status/msg")) {
|
||||
// check if there's a localized msg available
|
||||
QString lang = settings->curLang().split("_").at(0);
|
||||
QString msg;
|
||||
if(iniDetails.contains("status/msg." + lang))
|
||||
msg = iniDetails.value("status/msg." + lang).toString();
|
||||
else
|
||||
msg = iniDetails.value("status/msg").toString();
|
||||
QMessageBox::information(this, tr("Information"), msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue