fix: Multiple issues with provider load interfaces not working

This commit is contained in:
WerWolv
2025-02-15 11:13:22 +01:00
parent 83e0ce0042
commit 5542c0bc00
3 changed files with 5 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
namespace hex::plugin::builtin {
ViewProviderSettings::ViewProviderSettings() : View::Modal("hex.builtin.view.provider_settings.name") {
EventProviderOpened::subscribe(this, [this](const hex::prv::Provider *provider) {
EventProviderCreated::subscribe(this, [this](const hex::prv::Provider *provider) {
if (provider->hasLoadInterface() && !provider->shouldSkipLoadInterface())
this->getWindowOpenState() = true;
});
@@ -28,7 +28,7 @@ namespace hex::plugin::builtin {
}
ViewProviderSettings::~ViewProviderSettings() {
EventProviderOpened::unsubscribe(this);
EventProviderCreated::unsubscribe(this);
}
void ViewProviderSettings::drawContent() {