From 6747456f4848b234241b38be73879761a4efc318 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 11:19:35 -0700 Subject: [PATCH] fix(editor): improved WCP inspect toast with version and format info --- tools/editor/editor_ui.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index c223b5e2..17739073 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -253,10 +253,14 @@ void EditorUI::renderMenuBar(EditorApp& app) { } if (ImGui::MenuItem("Inspect Pack Info")) { editor::ContentPackInfo info; - if (editor::ContentPacker::readInfo(wcpImportPath, info)) - app.showToast(info.name + " by " + info.author + " (" + info.version + ")"); - else - app.showToast("Cannot read pack info"); + if (editor::ContentPacker::readInfo(wcpImportPath, info)) { + std::string msg = info.name + " v" + info.version; + if (!info.author.empty()) msg += " by " + info.author; + msg += " (" + info.format + ")"; + app.showToast(msg); + } else { + app.showToast("Cannot read pack — check path"); + } } ImGui::EndMenu(); }