fix: Crash when closing providers

This commit is contained in:
WerWolv
2024-06-16 14:48:31 +02:00
parent b3b79b3ee8
commit bee4b906fb
3 changed files with 3 additions and 3 deletions

View File

@@ -465,7 +465,7 @@ namespace hex::plugin::builtin {
auto &tabProvider = providers[i];
const auto selectedProviderIndex = ImHexApi::Provider::getCurrentProviderIndex();
const auto &closingProviders = ImHexApi::Provider::impl::getClosingProviders();
const auto closingProviders = ImHexApi::Provider::impl::getClosingProviders();
if (std::ranges::find(closingProviders, tabProvider) != closingProviders.end())
continue;