mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-03 05:57:40 -05:00
fix: Data information sections getting duplicated in NullProvieders
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user