mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-20 06:39:59 +01:00
Improved report of Media Player error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user