mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Show media download progress in percent on progress screen (#5498)
This commit is contained in:
parent
3a90b78a03
commit
63e175dd70
@ -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"))) {
|
||||
|
Loading…
Reference in New Issue
Block a user