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