Skip to content

Commit

Permalink
Show media download progress in percent on progress screen (#5498)
Browse files Browse the repository at this point in the history
  • Loading branch information
orwell96 authored and nerzhul committed Apr 6, 2017
1 parent 3a90b78 commit 63e175d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/game.cpp
Expand Up @@ -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"))) {
Expand Down

0 comments on commit 63e175d

Please sign in to comment.