mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
fix: Pattern source code being deleted when closing a provider
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
#include <imgui.h>
|
||||
#include <hex/ui/imgui_imhex_extensions.h>
|
||||
#include <hex/ui/imgui_data_visualizers.hpp>
|
||||
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
|
||||
@@ -145,8 +145,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
});
|
||||
|
||||
EventManager::subscribe<EventFileUnloaded>(this, [this] {
|
||||
this->m_textEditor.SetText("");
|
||||
EventManager::subscribe<EventFileUnloaded>(this, [] {
|
||||
ImHexApi::Provider::get()->getPatternLanguageRuntime().abort();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user