Removed display of "-100%" in the progress bar if an error occurs while downloading.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8298 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-04-12 06:53:13 +00:00
parent 20ca532726
commit ab3ba779fc

View File

@@ -116,6 +116,8 @@ void AddonsLoading::onUpdate(float delta)
if(progress<0)
{
m_state->setText(_("Download failed.\n"), false);
// Avoid displaying '-100%' in case of an error.
m_progress->setVisible(false);
m_back_button->setText(_("Back"));
return;
}