mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Merge pull request #2785 from vcmi/Nordsoft91-patch-1
This commit is contained in:
commit
93b889eb0f
@ -250,7 +250,7 @@ QString CModListView::genModInfoText(CModEntry & mod)
|
|||||||
result += replaceIfNotEmpty(mod.getValue("latestVersion"), lineTemplate.arg(tr("Latest version")));
|
result += replaceIfNotEmpty(mod.getValue("latestVersion"), lineTemplate.arg(tr("Latest version")));
|
||||||
|
|
||||||
if(mod.getValue("localSizeBytes").isValid())
|
if(mod.getValue("localSizeBytes").isValid())
|
||||||
result += replaceIfNotEmpty(CModEntry::sizeToString(mod.getValue("localSizeBytes").toDouble()), lineTemplate.arg(tr("downloadSize")));
|
result += replaceIfNotEmpty(CModEntry::sizeToString(mod.getValue("localSizeBytes").toDouble()), lineTemplate.arg(tr("Size")));
|
||||||
if((mod.isAvailable() || mod.isUpdateable()) && mod.getValue("downloadSize").isValid())
|
if((mod.isAvailable() || mod.isUpdateable()) && mod.getValue("downloadSize").isValid())
|
||||||
result += replaceIfNotEmpty(CModEntry::sizeToString(mbToBytes(mod.getValue("downloadSize").toDouble())), lineTemplate.arg(tr("Download size")));
|
result += replaceIfNotEmpty(CModEntry::sizeToString(mbToBytes(mod.getValue("downloadSize").toDouble())), lineTemplate.arg(tr("Download size")));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user