mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: Added more generic way to unlock frame rate when needed
This commit is contained in:
@@ -283,6 +283,8 @@ namespace hex::plugin::builtin {
|
||||
if (frontTask == nullptr)
|
||||
return;
|
||||
|
||||
ImHexApi::System::unlockFrameRate();
|
||||
|
||||
const auto progress = frontTask->getMaxValue() == 0 ? -1 : float(frontTask->getValue()) / float(frontTask->getMaxValue());
|
||||
|
||||
ImHexApi::System::setTaskBarProgress(ImHexApi::System::TaskProgressState::Progress, ImHexApi::System::TaskProgressType::Normal, u32(progress * 100));
|
||||
|
||||
Reference in New Issue
Block a user