Skip to content

Commit

Permalink
testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld committed Aug 17, 2024
1 parent 40350f0 commit 6cbbfa9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package main
import (
"context"
"fmt"
"log"

"github.com/wailsapp/wails/v2/pkg/runtime"
)

// App struct
Expand All @@ -19,6 +22,9 @@ func NewApp() *App {
// so we can call the runtime methods
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
runtime.OnFileDrop(a.ctx, func(x, y int, paths []string) {
log.Println(x, y, paths)
})
}

// Greet returns a greeting for the given name
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func main() {
Bind: []interface{}{
app,
},
DragAndDrop: &options.DragAndDrop{
EnableFileDrop: true,
},
})

if err != nil {
Expand Down

0 comments on commit 6cbbfa9

Please sign in to comment.