Closed dushixiang closed 1 year ago
I found the reason. The frontend would pop up the file selection box in Windows 10, and the backend would pop up at the same time, eventually causing the program to quit.
我也遇到这个问题,请问你的解决方法是?
我也遇到这个问题,请问你的解决方法是?
禁用前端页面本身的文件选择框,使用wails自身的功能即可。
我也遇到这个问题,请问你的解决方法是?
禁用前端页面本身的文件选择框,使用wails自身的功能即可。
我没有试用前端的对话框,弹出框,点击取消就报这个错误 2024/05/29 11:16:41 The parameter is incorrect. [0529/111641.543:ERROR:window_impl.cc(121)] Failed to unregister class Chrome_WidgetWin_0. Error = 0
是需要专门进行前端页面的文件选择框吗?如何禁用,Thx
Description
When using the following code to select and confirm a file on windows 10,
`
selection, err := runtime.OpenMultipleFilesDialog(a.ctx, runtime.OpenDialogOptions{ Title: "Select File", Filters: []runtime.FileFilter{ { DisplayName: "Images (.png;.jpg)", Pattern: ".png;.jpg", }, }, })`
Will cause the program to exit and output
To Reproduce
Expected behaviour
Files can be selected normally.
Screenshots
No response
Attempted Fixes
https://github.com/wailsapp/wails/issues/866 Not the same
System Details
Additional context
No response