修复: webview尺寸收窄卡住与兜底失效闪退
- 窗口尺寸变化后webview收窄卡住根修 - 尺寸兜底失效致闪退与修复空转加固 - 跨服务器预览残留清理
This commit is contained in:
@@ -64,6 +64,9 @@ func main() {
|
||||
app.HandleHotkey()
|
||||
return 0, true
|
||||
}
|
||||
case wmSizeMsg:
|
||||
// webview 尺寸失同步兜底(app_window_fix.go)
|
||||
go fixWebviewFill(hwnd)
|
||||
}
|
||||
return 0, false
|
||||
},
|
||||
@@ -105,6 +108,9 @@ func main() {
|
||||
|
||||
app.SetMainWindow(window)
|
||||
|
||||
// webview 与窗口尺寸失同步的周期兜底(app_window_fix.go)
|
||||
StartWebviewFillWatch()
|
||||
|
||||
// 外部文件拖入窗口(OS 资源管理器拖放):把本地路径转发给前端处理
|
||||
// (本机面板=复制进当前目录,SFTP 面板=上传)
|
||||
window.OnWindowEvent(events.Common.WindowFilesDropped, func(event *application.WindowEvent) {
|
||||
|
||||
Reference in New Issue
Block a user