mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-21 07:09:59 +01:00
Bug Fix Text source
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user