1
0
mirror of synced 2025-01-31 03:53:44 +01:00

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

@ -293,7 +293,7 @@ namespace hex {
namespace impl {
void resetClosingProvider();
const std::set<prv::Provider*>& getClosingProviders();
std::set<prv::Provider*> getClosingProviders();
}

View File

@ -277,7 +277,7 @@ namespace hex {
s_closingProviders.clear();
}
const std::set<prv::Provider*>& getClosingProviders() {
std::set<prv::Provider*> getClosingProviders() {
return s_closingProviders;
}

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;