mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Processing and drawing of diffs
This commit is contained in:
@@ -397,6 +397,8 @@ namespace hex::plugin::builtin {
|
||||
provider->close();
|
||||
if (!provider->open())
|
||||
ImHexApi::Provider::remove(provider, true);
|
||||
|
||||
EventDataChanged::post(provider);
|
||||
}, noRunningTaskAndValidProvider);
|
||||
|
||||
|
||||
|
||||
@@ -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(), std::min(progress, 1.0F) * 100.0F);
|
||||
|
||||
ImGuiExt::InfoTooltip(hex::format("{}{}", progressString, Lang(frontTask->getUnlocalizedName())).c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user