fix: Crash when right clicking search bar when a provider with no menu options is open
This commit is contained in:
parent
71763d108b
commit
a3f1a5b0a9
@ -182,10 +182,12 @@ namespace hex::plugin::builtin {
|
||||
});
|
||||
|
||||
EventFrameBegin::subscribe([] {
|
||||
if (ImGui::BeginPopup("ProviderMenu") && rightClickedProvider != nullptr && !rightClickedProvider->getMenuEntries().empty()) {
|
||||
drawProviderContextMenu(rightClickedProvider);
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
if (ImGui::BeginPopup("ProviderMenu")) {
|
||||
if (rightClickedProvider != nullptr && !rightClickedProvider->getMenuEntries().empty())
|
||||
drawProviderContextMenu(rightClickedProvider);
|
||||
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
});
|
||||
|
||||
ContentRegistry::Interface::addToolbarItem([] {
|
||||
|
Loading…
Reference in New Issue
Block a user