Show media download progress in percent on progress screen (#5498)

This commit is contained in:
orwell96 2017-04-07 00:03:29 +02:00 committed by Loïc Blot
parent 3a90b78a03
commit 63e175dd70
1 changed files with 4 additions and 2 deletions

View File

@ -2192,8 +2192,10 @@ bool Game::getServerContent(bool *aborted)
delete[] text;
} else {
std::stringstream message;
message.precision(3);
message << gettext("Media...");
std::fixed(message);
message.precision(0);
message << gettext("Media...") << " " << (client->mediaReceiveProgress()*100) << "%";
message.precision(2);
if ((USE_CURL == 0) ||
(!g_settings->getBool("enable_remote_media_server"))) {