Bugfix: the label with the error message was invisible.

Note that the error message is not properly aligned atm, see
#229 for details.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-05-25 04:22:05 +00:00
parent 624d050571
commit 082476c8ce

View File

@@ -197,10 +197,9 @@ void AddonsLoading::onUpdate(float delta)
m_progress->setValue((int)(progress*100.0f));
if(progress<0)
{
m_back_button->setText(_("Download failed.\n"));
// Avoid displaying '-100%' in case of an error.
m_progress->setVisible(false);
m_back_button->setVisible(false);
m_back_button->setText(_("Download failed.\n"));
return;
}
else if(progress>=1.0f)