Improved report of Media Player error

This commit is contained in:
Bruno Herbelin
2023-03-25 20:33:30 +01:00
parent e192d254f9
commit 85a25a0a39
2 changed files with 12 additions and 6 deletions

View File

@@ -642,10 +642,16 @@ void ImGuiVisitor::visit (MediaSource& s)
info.reset();
ImGui::SetCursorPos(top);
if (ImGuiToolkit::IconButton(ICON_FA_FOLDER_OPEN, "Show in finder"))
SystemToolkit::open(SystemToolkit::path_filename(s.path()));
if ( info.str().size() > 150 ) {
top.y += 2.f * ImGui::GetFrameHeight();
ImGui::SetCursorPos(top);
if (ImGuiToolkit::IconButton(ICON_FA_COPY, "Copy"))
ImGui::SetClipboardText(info.str().c_str());
}
ImGui::SetCursorPos(botom);
}