1
0
mirror of synced 2025-01-18 17:14:13 +01:00

impr: Disable advanced provider information popup if there are none

This commit is contained in:
WerWolv 2023-06-03 15:57:47 +02:00
parent d2e455c4cb
commit aca949175d

View File

@ -249,7 +249,8 @@ namespace hex::plugin::builtin {
ImGui::TextFormatted("{}", tabProvider->getName().c_str());
if (ImGui::GetIO().KeyShift) {
const auto &description = provider->getDataDescription();
if (ImGui::GetIO().KeyShift && !description.empty()) {
ImGui::Separator();
if (ImGui::BeginTable("information", 2, ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_RowBg | ImGuiTableFlags_NoKeepColumnsVisible)) {
@ -258,7 +259,7 @@ namespace hex::plugin::builtin {
ImGui::TableNextRow();
for (auto &[name, value] : provider->getDataDescription()) {
for (auto &[name, value] : description) {
ImGui::TableNextColumn();
ImGui::TextFormatted("{}", name);
ImGui::TableNextColumn();