mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Crash when opening provider after warm-restarting ImHex
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <hex/ui/view.hpp>
|
||||
#include <hex/api/task_manager.hpp>
|
||||
#include <hex/helpers/auto_reset.hpp>
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
@@ -7,7 +8,7 @@
|
||||
|
||||
namespace hex {
|
||||
|
||||
static View* s_lastFocusedView = nullptr;
|
||||
static AutoReset<View*> s_lastFocusedView = nullptr;
|
||||
|
||||
View::View(UnlocalizedString unlocalizedName, const char *icon) : m_unlocalizedViewName(std::move(unlocalizedName)), m_icon(icon) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user