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([] {
|
EventFrameBegin::subscribe([] {
|
||||||
if (ImGui::BeginPopup("ProviderMenu") && rightClickedProvider != nullptr && !rightClickedProvider->getMenuEntries().empty()) {
|
if (ImGui::BeginPopup("ProviderMenu")) {
|
||||||
drawProviderContextMenu(rightClickedProvider);
|
if (rightClickedProvider != nullptr && !rightClickedProvider->getMenuEntries().empty())
|
||||||
ImGui::EndPopup();
|
drawProviderContextMenu(rightClickedProvider);
|
||||||
}
|
|
||||||
|
ImGui::EndPopup();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ContentRegistry::Interface::addToolbarItem([] {
|
ContentRegistry::Interface::addToolbarItem([] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user