mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Closing one view breaking all other views
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user