fix: Closing one view breaking all other views

This commit is contained in:
WerWolv
2025-02-17 10:16:51 +01:00
parent f93e1194d6
commit 73b9df24cf

View File

@@ -52,9 +52,10 @@ namespace hex::plugin::builtin {
return false;
EventProviderClosing::subscribe(this, [this](const prv::Provider *provider, bool*) {
if (m_provider == provider)
if (m_provider == provider) {
ImHexApi::Provider::remove(this, false);
m_provider = nullptr;
m_provider = nullptr;
}
});
return true;