1
0
mirror of synced 2024-11-12 10:10:53 +01:00

feat: Make paths in about page clickable

This commit is contained in:
WerWolv 2023-06-05 13:50:55 +02:00
parent 9712329924
commit 849e4ea370

View File

@ -177,9 +177,11 @@ namespace hex::plugin::builtin {
ImGui::TableNextColumn();
for (auto &path : fs::getDefaultPaths(type, true)){
if(wolv::io::fs::isDirectory(path)){
ImGui::TextUnformatted(wolv::util::toUTF8String(path).c_str());
}else{
if (wolv::io::fs::isDirectory(path)){
if (ImGui::Hyperlink(wolv::util::toUTF8String(path).c_str())) {
fs::openFolderExternal(path);
}
} else {
ImGui::TextFormattedColored(ImGui::GetCustomColorVec4(ImGuiCustomCol_ToolbarRed), wolv::util::toUTF8String(path).c_str());
}
}