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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user