From cc55e5ec74a8327cea13e7b8aafa4afe42cf36a6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 4 Jun 2023 18:41:58 +0200 Subject: [PATCH] fix: Added missing pattern data favorites lang entry --- plugins/builtin/romfs/lang/en_US.json | 1 + plugins/builtin/source/ui/pattern_drawer.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/builtin/romfs/lang/en_US.json b/plugins/builtin/romfs/lang/en_US.json index bc479f341..7f1bfc647 100644 --- a/plugins/builtin/romfs/lang/en_US.json +++ b/plugins/builtin/romfs/lang/en_US.json @@ -361,6 +361,7 @@ "hex.builtin.nodes.visualizer.layered_dist.header": "Layered Distribution", "hex.builtin.pattern_drawer.color": "Color", "hex.builtin.pattern_drawer.double_click": "Double-click to see more items", + "hex.builtin.pattern_drawer.favorites": "Favorites", "hex.builtin.pattern_drawer.local": "Local", "hex.builtin.pattern_drawer.offset": "Offset", "hex.builtin.pattern_drawer.size": "Size", diff --git a/plugins/builtin/source/ui/pattern_drawer.cpp b/plugins/builtin/source/ui/pattern_drawer.cpp index 3a9ef6d8a..19f9f7a71 100644 --- a/plugins/builtin/source/ui/pattern_drawer.cpp +++ b/plugins/builtin/source/ui/pattern_drawer.cpp @@ -1039,7 +1039,7 @@ namespace hex::plugin::builtin::ui { ImGui::TableNextColumn(); ImGui::TableNextColumn(); ImGui::PushID(1); - if (ImGui::TreeNodeEx("Favorites", ImGuiTreeNodeFlags_SpanFullWidth)) { + if (ImGui::TreeNodeEx("hex.builtin.pattern_drawer.favorites"_lang, ImGuiTreeNodeFlags_SpanFullWidth)) { for (auto &[path, pattern] : this->m_favorites) { ImGui::PushID(pattern->getDisplayName().c_str()); this->draw(*pattern);