Bug Fix Text source

This commit is contained in:
Bruno Herbelin
2023-11-13 18:30:20 +01:00
parent 58371c36d3
commit 885b92a0a1
3 changed files with 19 additions and 13 deletions

View File

@@ -1873,8 +1873,12 @@ void ImGuiVisitor::visit(TextSource &s)
botom = ImGui::GetCursorPos();
// Action on the filename
ImGui::SetCursorPos(ImVec2(top.x, botom.y - ImGui::GetFrameHeight()));
if (ImGuiToolkit::IconButton(3, 5, "Open"))
if (ImGuiToolkit::IconButton(ICON_FA_EDIT, "Open in editor"))
SystemToolkit::open(_contents.c_str());
ImGui::SetCursorPos(
ImVec2(top.x + 0.95 * ImGui::GetFrameHeight(), botom.y - ImGui::GetFrameHeight()));
if (ImGuiToolkit::IconButton(ICON_FA_REDO_ALT, "Reload"))
tc->reopen();
}
// general case of free text : text editor
else {