fix: Crash when closing providers
This commit is contained in:
parent
b3b79b3ee8
commit
bee4b906fb
@ -293,7 +293,7 @@ namespace hex {
|
||||
namespace impl {
|
||||
|
||||
void resetClosingProvider();
|
||||
const std::set<prv::Provider*>& getClosingProviders();
|
||||
std::set<prv::Provider*> getClosingProviders();
|
||||
|
||||
}
|
||||
|
||||
|
@ -277,7 +277,7 @@ namespace hex {
|
||||
s_closingProviders.clear();
|
||||
}
|
||||
|
||||
const std::set<prv::Provider*>& getClosingProviders() {
|
||||
std::set<prv::Provider*> getClosingProviders() {
|
||||
return s_closingProviders;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user