mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[v3] Fix not enough memory error when initialising drag and drop on Windows
Fix not enough memory error when initialising drag and drop on windows Co-authored-by: Andraz Vrhovec <andraz@koofr.net> Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
parent
e80cf28578
commit
54942d4f34
1 changed files with 4 additions and 0 deletions
|
|
@ -1967,6 +1967,10 @@ func (w *windowsWebviewWindow) setupChromium() {
|
|||
globalApplication.handleFatalError(err)
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize OLE for drag-and-drop operations
|
||||
w32.OleInitialise()
|
||||
|
||||
w.dropTarget = w32.NewDropTarget()
|
||||
w.dropTarget.OnDrop = func(files []string, x int, y int) {
|
||||
w.parent.emit(events.Windows.WindowDragDrop)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue