mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
impr: Unlock frame rate in more cases
This commit is contained in:
@@ -518,6 +518,9 @@ namespace hex {
|
||||
EventFileDropped::post(reinterpret_cast<const char8_t *>(paths[i]));
|
||||
}
|
||||
});
|
||||
EventFileDropped::subscribe([this] {
|
||||
this->unlockFrameRate();
|
||||
});
|
||||
}
|
||||
|
||||
bool borderlessWindowMode = ImHexApi::System::isBorderlessWindowModeEnabled();
|
||||
|
||||
@@ -329,6 +329,11 @@ namespace hex {
|
||||
// Unlock frame rate if there's more than one viewport since these don't call the glfw callbacks registered here
|
||||
if (ImGui::GetPlatformIO().Viewports.size() > 1)
|
||||
this->unlockFrameRate();
|
||||
|
||||
// Unlock frame rate if there's any task running that shows a loading animation
|
||||
if (TaskManager::getRunningTaskCount() > 0 || TaskManager::getRunningBlockingTaskCount() > 0) {
|
||||
this->unlockFrameRate();
|
||||
}
|
||||
}
|
||||
|
||||
// Hide the window as soon as the render loop exits to make the window
|
||||
|
||||
Reference in New Issue
Block a user