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

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