Add copy button for rip log

This commit is contained in:
Stu Leak 2026-01-04 16:39:22 -05:00
parent 5bee0b8264
commit 5744f69d28

View File

@ -162,6 +162,13 @@ func buildRipView(state *appState) fyne.CanvasObject {
logScroll := container.NewVScroll(logEntry)
// logScroll.SetMinSize(fyne.NewSize(0, 200)) // Removed for flexible sizing
state.ripLogScroll = logScroll
copyLogBtn := widget.NewButton("Copy Log", func() {
if strings.TrimSpace(state.ripLogText) == "" {
return
}
state.window.Clipboard().SetContent(state.ripLogText)
})
copyLogBtn.Importance = widget.LowImportance
addQueueBtn := widget.NewButton("Add Rip to Queue", func() {
if err := state.addRipToQueue(false); err != nil {
@ -258,7 +265,11 @@ func buildRipView(state *appState) fyne.CanvasObject {
statusLabel,
progressBar,
widget.NewSeparator(),
widget.NewLabelWithStyle("Rip Log", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
container.NewHBox(
widget.NewLabelWithStyle("Rip Log", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
layout.NewSpacer(),
copyLogBtn,
),
logScroll,
)