mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Crash when right clicking search bar when a provider with no menu options is open
This commit is contained in:
@@ -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([] {
|
||||
|
||||
Reference in New Issue
Block a user