diff --git a/plugins/builtin/source/content/ui_items.cpp b/plugins/builtin/source/content/ui_items.cpp index 5ad4fc153..1d5fd6706 100644 --- a/plugins/builtin/source/content/ui_items.cpp +++ b/plugins/builtin/source/content/ui_items.cpp @@ -465,7 +465,8 @@ namespace hex::plugin::builtin { auto &tabProvider = providers[i]; const auto selectedProviderIndex = ImHexApi::Provider::getCurrentProviderIndex(); - if (std::ranges::contains(ImHexApi::Provider::impl::getClosingProviders(), tabProvider)) + const auto &closingProviders = ImHexApi::Provider::impl::getClosingProviders(); + if (std::ranges::find(closingProviders, tabProvider) != closingProviders.end()) continue; bool open = true;