mirror of https://github.com/WerWolv/ImHex.git
fix: Data information sections getting duplicated in NullProvieders
This commit is contained in:
parent
d45e0d1cac
commit
296f80ffe5
|
@ -18,6 +18,7 @@ namespace hex::plugin::builtin {
|
|||
m_analysisData.setOnCreateCallback([](const prv::Provider *provider, AnalysisData &data) {
|
||||
data.analyzedProvider = provider;
|
||||
|
||||
data.informationSections.clear();
|
||||
for (const auto &informationSectionConstructor : ContentRegistry::DataInformation::impl::getInformationSectionConstructors()) {
|
||||
data.informationSections.push_back(informationSectionConstructor());
|
||||
}
|
||||
|
|
|
@ -364,8 +364,7 @@ namespace hex::plugin::builtin {
|
|||
if (ImGuiExt::DimmedIconButton(ICON_VS_CLOSE, ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_ToolbarRed))) {
|
||||
auto provider = ImHexApi::Provider::createProvider("hex.builtin.provider.null");
|
||||
if (provider != nullptr)
|
||||
if (provider->open())
|
||||
EventProviderOpened::post(provider);
|
||||
std::ignore = provider->open();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue