Allow drop anywhere in merge list
This commit is contained in:
parent
c8398dd966
commit
d6e9082aa9
12
main.go
12
main.go
|
|
@ -1788,7 +1788,17 @@ func (s *appState) showMergeView() {
|
||||||
left := container.NewVBox(
|
left := container.NewVBox(
|
||||||
widget.NewLabelWithStyle("Clips to Merge", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Clips to Merge", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
container.NewHBox(addBtn, clearBtn),
|
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(
|
right := container.NewVBox(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user