From f243ac7464fb29ea9e0f3f221584639b8db44ff5 Mon Sep 17 00:00:00 2001 From: Polshakov Dmitry Date: Thu, 9 Jun 2022 16:58:40 +0300 Subject: [PATCH] fix: correctly show checked plugin files (#529) Co-authored-by: Dmitry Polshakov --- main/source/window/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index 40db0413d..cacd9d70e 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -348,11 +348,12 @@ namespace hex { ImGui::TableHeadersRow(); for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Plugins, true)) { + const auto filePath = path / "builtin.hexplug"; ImGui::TableNextRow(); ImGui::TableNextColumn(); - ImGui::TextUnformatted(path.string().c_str()); + ImGui::TextUnformatted(filePath.string().c_str()); ImGui::TableNextColumn(); - ImGui::TextUnformatted(fs::exists(path) ? ICON_VS_CHECK : ICON_VS_CLOSE); + ImGui::TextUnformatted(fs::exists(filePath) ? ICON_VS_CHECK : ICON_VS_CLOSE); } ImGui::EndTable(); }