impr: Don't show separator in bookmark drag tooltip if no comment is present
This commit is contained in:
parent
ecf871a6f1
commit
4fd65403c0
@ -342,9 +342,9 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::ColorButton("##color", headerColor.Value, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoAlpha);
|
ImGui::ColorButton("##color", headerColor.Value, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoAlpha);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGuiExt::TextFormatted("{}", name);
|
ImGuiExt::TextFormatted("{}", name);
|
||||||
ImGui::Separator();
|
|
||||||
|
|
||||||
if (!comment.empty()) {
|
if (!comment.empty()) {
|
||||||
|
ImGui::Separator();
|
||||||
ImGui::PushTextWrapPos(300_scaled);
|
ImGui::PushTextWrapPos(300_scaled);
|
||||||
ImGuiExt::TextFormatted("{}", comment);
|
ImGuiExt::TextFormatted("{}", comment);
|
||||||
ImGui::PopTextWrapPos();
|
ImGui::PopTextWrapPos();
|
||||||
|
Loading…
Reference in New Issue
Block a user