mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 03:01:45 +08:00
Nil pointer check for DnD (#3597)
* Nil pointer check for DnD * Update changelog
This commit is contained in:
parent
d36d1718d9
commit
9995dae4ad
@ -740,6 +740,11 @@ func (f *Frontend) processMessageWithAdditionalObjects(message string, sender *e
|
||||
return
|
||||
}
|
||||
|
||||
if _file == nil {
|
||||
f.logger.Warning("object at %d is not a file", i)
|
||||
continue
|
||||
}
|
||||
|
||||
file := (*edge.ICoreWebView2File)(unsafe.Pointer(_file))
|
||||
defer file.Release()
|
||||
|
||||
|
@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Fixed binding for struct fields that were exported but had no json tags. [PR #3678](https://github.com/wailsapp/wails/pull/3678)
|
||||
+ Fixed file drop events on Windows in [PR](https://github.com/wailsapp/wails/pull/3595) by @FrancescoLuzzi
|
||||
+ Modified `ZoomFactor` and `IsZoomControlEnabled` options to be Windows-only options in PR[#3644](https://github.com/wailsapp/wails/pull/3644) by @levinit
|
||||
- Added nil check for Drag-n-Drop on Windows. Fixed by in [PR](https://github.com/wailsapp/wails/pull/3597) by @leaanthony based on the suggestion by @Alpa-1 in [#3596](https://github.com/wailsapp/wails/issues/3596).
|
||||
|
||||
|
||||
## v2.9.1 - 2024-06-18
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user