Allow drop anywhere in merge list

This commit is contained in:
Stu Leak 2025-12-10 21:22:04 -05:00
parent 91493d6ca9
commit c0081e3693

12
main.go
View File

@ -1788,7 +1788,17 @@ func (s *appState) showMergeView() {
left := container.NewVBox(
widget.NewLabelWithStyle("Clips to Merge", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
container.NewHBox(addBtn, clearBtn),
listScroll,
ui.NewDroppable(listScroll, func(items []fyne.URI) {
var paths []string
for _, uri := range items {
if uri.Scheme() == "file" {
paths = append(paths, uri.Path())
}
}
if len(paths) > 0 {
addFiles(paths)
}
}),
)
right := container.NewVBox(