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

This commit is contained in:
Lea Anthony
2023-01-26 07:34:25 +11:00
parent 651a1a5d66
commit c34c761c5f
+3
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