mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-07 00:02:39 +08:00
Fix for #4235
This commit is contained in:
parent
0c14b208b3
commit
3a72dd6a0d
@ -5,7 +5,7 @@ This document is for tracking the status of the v3-alpha branch in readiness for
|
||||
## Examples
|
||||
|
||||
| Example | Linux | Windows | macOS |
|
||||
|--------------------|-------|--------------------------------------------------|-------|
|
||||
|--------------------|-------|--------------------------------------------------|-------------------------------------------------------|
|
||||
| badge | | ✅ | |
|
||||
| binding | | ✅ | ✅ |
|
||||
| cancel-async | | ✅ | ✅ |
|
||||
|
@ -198,7 +198,10 @@ func (m *windowSaveFileDialog) show() (chan string, error) {
|
||||
}, false)
|
||||
go func() {
|
||||
defer handlePanic()
|
||||
files <- result.(string)
|
||||
filename, ok := result.(string)
|
||||
if ok {
|
||||
files <- filename
|
||||
}
|
||||
close(files)
|
||||
}()
|
||||
return files, err
|
||||
|
Loading…
Reference in New Issue
Block a user