1
0
mirror of synced 2025-01-18 00:56:49 +01:00

fix: Use std::ranges::find instead of std::ranges::contains for now

This commit is contained in:
WerWolv 2024-03-29 16:34:01 +01:00
parent edf047dde8
commit 696612385a

View File

@ -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;