diff --git a/plugins/builtin/source/content/views/view_pattern_data.cpp b/plugins/builtin/source/content/views/view_pattern_data.cpp index 9b041a77e..251269c61 100644 --- a/plugins/builtin/source/content/views/view_pattern_data.cpp +++ b/plugins/builtin/source/content/views/view_pattern_data.cpp @@ -15,6 +15,10 @@ namespace hex::plugin::builtin { this->m_sortedPatterns[ImHexApi::Provider::get()].clear(); }); + + EventManager::subscribe([this](auto *provider) { + this->m_sortedPatterns[provider].clear(); + }); } ViewPatternData::~ViewPatternData() {