1
0
mirror of synced 2024-09-24 11:38:26 +02:00

fix: Invalid parameters passed to task progress bar formatter

This commit is contained in:
WerWolv 2024-01-27 14:15:05 +01:00
parent 11f75f72ee
commit 823881f7f1

View File

@ -187,7 +187,7 @@ namespace hex::plugin::builtin {
if (progress < 0)
progressString = "";
else
progressString = hex::format("[ {}/{} ({:.1f}%) ] ", frontTask->getValue() / frontTask->getMaxValue(), progress * 100.0F);
progressString = hex::format("[ {}/{} ({:.1f}%) ] ", frontTask->getValue(), frontTask->getMaxValue(), progress * 100.0F);
ImGuiExt::InfoTooltip(hex::format("{}{}", progressString, Lang(frontTask->getUnlocalizedName())).c_str());