mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Only first opened popup appearing properly
This commit is contained in:
@@ -62,9 +62,6 @@ namespace hex {
|
|||||||
|
|
||||||
std::string m_windowTitle, m_windowTitleFull;
|
std::string m_windowTitle, m_windowTitleFull;
|
||||||
|
|
||||||
double m_lastStartFrameTime = 0;
|
|
||||||
double m_lastFrameTime = 0;
|
|
||||||
|
|
||||||
std::set<int> m_pressedKeys;
|
std::set<int> m_pressedKeys;
|
||||||
|
|
||||||
ImGuiExt::ImHexCustomData m_imguiCustomData;
|
ImGuiExt::ImHexCustomData m_imguiCustomData;
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#include <hex/ui/popup.hpp>
|
#include <hex/ui/popup.hpp>
|
||||||
#include <hex/ui/banner.hpp>
|
#include <hex/ui/banner.hpp>
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <numbers>
|
#include <numbers>
|
||||||
@@ -535,7 +536,7 @@ namespace hex {
|
|||||||
if (popupDelay <= -1.0) {
|
if (popupDelay <= -1.0) {
|
||||||
popupDelay = 0.2;
|
popupDelay = 0.2;
|
||||||
} else {
|
} else {
|
||||||
popupDelay -= m_lastFrameTime;
|
popupDelay -= io.DeltaTime;
|
||||||
if (popupDelay < 0 || popups.size() == 1) {
|
if (popupDelay < 0 || popups.size() == 1) {
|
||||||
popupDelay = -2.0;
|
popupDelay = -2.0;
|
||||||
currPopup = std::move(popups.back());
|
currPopup = std::move(popups.back());
|
||||||
|
|||||||
Reference in New Issue
Block a user