5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 15:11:53 +08:00

[v3] Fix crash when calling window.Show() before application.Run()

This commit is contained in:
Lea Anthony 2023-01-26 07:34:05 +11:00
parent 651a1a5d66
commit c34c761c5f
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -177,6 +177,9 @@ func (w *WebviewWindow) SetAlwaysOnTop(b bool) *WebviewWindow {
}
func (w *WebviewWindow) Show() *WebviewWindow {
if globalApplication.impl == nil {
return w
}
if w.impl == nil {
w.run()
return w