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:
Dominik Riebeling 2009-03-22 21:39:40 +00:00
parent 694c830121
commit fb3e163796

View file

@ -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);
}
}