1
0
mirror of synced 2024-11-12 02:00:52 +01: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) if (progress < 0)
progressString = ""; progressString = "";
else 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()); ImGuiExt::InfoTooltip(hex::format("{}{}", progressString, Lang(frontTask->getUnlocalizedName())).c_str());